@flextudio/scenario 0.1.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/LICENSE +202 -0
- package/README.md +260 -0
- package/bin/flex-scenario.mjs +895 -0
- package/commands/flex-spec.md +28 -0
- package/contract-data/README.md +267 -0
- package/contract-data/examples/README.md +147 -0
- package/contract-data/examples/basic/basic-list-detail.json +2521 -0
- package/contract-data/examples/basic/delivery-address-popup.json +2175 -0
- package/contract-data/examples/basic/fixedtop-floating-form.json +1524 -0
- package/contract-data/examples/basic/search-period-popup.json +1524 -0
- package/contract-data/examples/design/booking-wizard-3step.json +1335 -0
- package/contract-data/examples/design/list-detail-form-3step.json +1516 -0
- package/contract-data/examples/design/list-filter-2step.json +1365 -0
- package/contract-data/examples/design/list-filter-detail-3step.json +1570 -0
- package/contract-data/examples/design/result-entry-wizard-4step.json +1861 -0
- package/contract-data/examples/intent/mock-employee-list.json +54 -0
- package/contract-data/examples/intent/script-cart-flow.json +96 -0
- package/contract-data/examples/intent/script-dialog-confirm.json +61 -0
- package/contract-data/runtime/v1/collection/README.md +119 -0
- package/contract-data/runtime/v1/collection/_c.md +205 -0
- package/contract-data/runtime/v1/collection/category.md +165 -0
- package/contract-data/runtime/v1/collection/collection.md +135 -0
- package/contract-data/runtime/v1/collection/lifecycle.md +140 -0
- package/contract-data/runtime/v1/collection/naming.md +174 -0
- package/contract-data/runtime/v1/collection/sector.md +176 -0
- package/contract-data/runtime/v1/collection/status.md +114 -0
- package/contract-data/runtime/v1/intent-system/INTENT.md +552 -0
- package/contract-data/runtime/v1/intent-system/README.md +118 -0
- package/contract-data/runtime/v1/intent-system/intent.schema.json +164 -0
- package/contract-data/runtime/v1/intent-system/kinds/_base.mjs +137 -0
- package/contract-data/runtime/v1/intent-system/kinds/clearCategory.mjs +35 -0
- package/contract-data/runtime/v1/intent-system/kinds/copyStepValues.mjs +100 -0
- package/contract-data/runtime/v1/intent-system/kinds/deleteActive.mjs +45 -0
- package/contract-data/runtime/v1/intent-system/kinds/dialog.mjs +127 -0
- package/contract-data/runtime/v1/intent-system/kinds/reloadGroup.mjs +28 -0
- package/contract-data/runtime/v1/intent-system/kinds/updateActive.mjs +74 -0
- package/contract-data/runtime/v1/intent-system/materialize.mjs +495 -0
- package/contract-data/runtime/v1/script/README.md +37 -0
- package/contract-data/runtime/v1/script/current_step.md +112 -0
- package/contract-data/runtime/v1/script/f_collection.md +142 -0
- package/contract-data/runtime/v1/script/f_content.md +133 -0
- package/contract-data/runtime/v1/script/f_messagebox.md +132 -0
- package/contract-data/runtime/v1/script/scenario-gen-rules.md +264 -0
- package/contract-data/schema/v1/SKELETON-SHELL.md +120 -0
- package/contract-data/schema/v1/bottom-buttons.md +155 -0
- package/contract-data/schema/v1/bottom-buttons.schema.json +134 -0
- package/contract-data/schema/v1/control/_base.schema.json +1296 -0
- package/contract-data/schema/v1/control/button.md +147 -0
- package/contract-data/schema/v1/control/button.schema.json +55 -0
- package/contract-data/schema/v1/control/calendar-navigator.md +143 -0
- package/contract-data/schema/v1/control/calendar-navigator.schema.json +164 -0
- package/contract-data/schema/v1/control/calendar.md +128 -0
- package/contract-data/schema/v1/control/calendar.schema.json +18 -0
- package/contract-data/schema/v1/control/check-box.md +117 -0
- package/contract-data/schema/v1/control/check-box.schema.json +41 -0
- package/contract-data/schema/v1/control/combo.md +293 -0
- package/contract-data/schema/v1/control/combo.schema.json +23 -0
- package/contract-data/schema/v1/control/embed.md +211 -0
- package/contract-data/schema/v1/control/embed.schema.json +30 -0
- package/contract-data/schema/v1/control/image-box.md +237 -0
- package/contract-data/schema/v1/control/image-box.schema.json +49 -0
- package/contract-data/schema/v1/control/input-date.md +175 -0
- package/contract-data/schema/v1/control/input-date.schema.json +27 -0
- package/contract-data/schema/v1/control/input-file.md +192 -0
- package/contract-data/schema/v1/control/input-file.schema.json +139 -0
- package/contract-data/schema/v1/control/input-mask.md +89 -0
- package/contract-data/schema/v1/control/input-mask.schema.json +45 -0
- package/contract-data/schema/v1/control/input-number.md +55 -0
- package/contract-data/schema/v1/control/input-number.schema.json +24 -0
- package/contract-data/schema/v1/control/input-text.md +73 -0
- package/contract-data/schema/v1/control/input-text.schema.json +24 -0
- package/contract-data/schema/v1/control/label.md +127 -0
- package/contract-data/schema/v1/control/label.schema.json +113 -0
- package/contract-data/schema/v1/control/multi-input-box.md +51 -0
- package/contract-data/schema/v1/control/multi-input-box.schema.json +19 -0
- package/contract-data/schema/v1/control/other.schema.json +24 -0
- package/contract-data/schema/v1/control/radio-box.md +150 -0
- package/contract-data/schema/v1/control/radio-box.schema.json +87 -0
- package/contract-data/schema/v1/control/search.md +163 -0
- package/contract-data/schema/v1/control/search.schema.json +23 -0
- package/contract-data/schema/v1/control/tab.md +240 -0
- package/contract-data/schema/v1/control/tab.schema.json +112 -0
- package/contract-data/schema/v1/control/tree.md +278 -0
- package/contract-data/schema/v1/control/tree.schema.json +83 -0
- package/contract-data/schema/v1/control.md +264 -0
- package/contract-data/schema/v1/control.schema.json +30 -0
- package/contract-data/schema/v1/data-objects.md +278 -0
- package/contract-data/schema/v1/data-objects.schema.json +161 -0
- package/contract-data/schema/v1/data-sources.md +215 -0
- package/contract-data/schema/v1/data-sources.schema.json +184 -0
- package/contract-data/schema/v1/design-system/DESIGN.md +282 -0
- package/contract-data/schema/v1/design-system/README.md +235 -0
- package/contract-data/schema/v1/design-system/design.schema.json +496 -0
- package/contract-data/schema/v1/design-system/error-mapping.mjs +132 -0
- package/contract-data/schema/v1/design-system/materialize.mjs +1435 -0
- package/contract-data/schema/v1/design-system/tests/_base.additional-meta.test.mjs +98 -0
- package/contract-data/schema/v1/design-system/tests/_base.materialize.test.mjs +596 -0
- package/contract-data/schema/v1/design-system/tests/checklist.test.mjs +135 -0
- package/contract-data/schema/v1/design-system/tests/design.schema.test.mjs +487 -0
- package/contract-data/schema/v1/design-system/tests/error-mapping.test.mjs +244 -0
- package/contract-data/schema/v1/design-system/tests/materialize.test.mjs +1093 -0
- package/contract-data/schema/v1/design-system/tests/move-step.test.mjs +119 -0
- package/contract-data/schema/v1/design-system/tests/override.integration.test.mjs +116 -0
- package/contract-data/schema/v1/design-system/tokens.json +76 -0
- package/contract-data/schema/v1/events.md +467 -0
- package/contract-data/schema/v1/events.schema.json +272 -0
- package/contract-data/schema/v1/group.md +146 -0
- package/contract-data/schema/v1/group.schema.json +133 -0
- package/contract-data/schema/v1/mockup-data.md +186 -0
- package/contract-data/schema/v1/naming-objects.schema.json +133 -0
- package/contract-data/schema/v1/node.md +32 -0
- package/contract-data/schema/v1/node.schema.json +24 -0
- package/contract-data/schema/v1/patterns/_base.additional-meta.mjs +135 -0
- package/contract-data/schema/v1/patterns/_base.controls.mjs +759 -0
- package/contract-data/schema/v1/patterns/_base.icon.mjs +61 -0
- package/contract-data/schema/v1/patterns/_base.id.mjs +15 -0
- package/contract-data/schema/v1/patterns/_base.materialize.mjs +1181 -0
- package/contract-data/schema/v1/patterns/_base.style.mjs +312 -0
- package/contract-data/schema/v1/patterns/atom/badge.materialize.mjs +68 -0
- package/contract-data/schema/v1/patterns/atom/badge.schema.json +44 -0
- package/contract-data/schema/v1/patterns/atom/button.materialize.mjs +91 -0
- package/contract-data/schema/v1/patterns/atom/button.schema.json +70 -0
- package/contract-data/schema/v1/patterns/atom/checkbox.materialize.mjs +40 -0
- package/contract-data/schema/v1/patterns/atom/checkbox.schema.json +39 -0
- package/contract-data/schema/v1/patterns/atom/segmented-radio.materialize.mjs +67 -0
- package/contract-data/schema/v1/patterns/atom/segmented-radio.schema.json +49 -0
- package/contract-data/schema/v1/patterns/atom/switch.materialize.mjs +58 -0
- package/contract-data/schema/v1/patterns/atom/switch.schema.json +27 -0
- package/contract-data/schema/v1/patterns/molecule/checklist.materialize.mjs +130 -0
- package/contract-data/schema/v1/patterns/molecule/checklist.schema.json +63 -0
- package/contract-data/schema/v1/patterns/molecule/input-action.materialize.mjs +356 -0
- package/contract-data/schema/v1/patterns/molecule/input-action.schema.json +251 -0
- package/contract-data/schema/v1/patterns/molecule/input-button.materialize.mjs +183 -0
- package/contract-data/schema/v1/patterns/molecule/input-button.schema.json +141 -0
- package/contract-data/schema/v1/patterns/molecule/input-pair.materialize.mjs +254 -0
- package/contract-data/schema/v1/patterns/molecule/input-pair.schema.json +210 -0
- package/contract-data/schema/v1/scenario.md +112 -0
- package/contract-data/schema/v1/scenario.schema.json +161 -0
- package/contract-data/schema/v1/service/CustomSystem.md +139 -0
- package/contract-data/schema/v1/service/CustomSystem.schema.json +41 -0
- package/contract-data/schema/v1/service/Firestore.md +125 -0
- package/contract-data/schema/v1/service/Firestore.schema.json +28 -0
- package/contract-data/schema/v1/service/FlexAutoQuery.md +128 -0
- package/contract-data/schema/v1/service/FlexAutoQuery.schema.json +35 -0
- package/contract-data/schema/v1/service/FlexSQL.md +96 -0
- package/contract-data/schema/v1/service/FlexSQL.schema.json +33 -0
- package/contract-data/schema/v1/service/Flextudio API.md +161 -0
- package/contract-data/schema/v1/service/Flextudio API.schema.json +115 -0
- package/contract-data/schema/v1/service/Flextudio.md +87 -0
- package/contract-data/schema/v1/service/Flextudio.schema.json +26 -0
- package/contract-data/schema/v1/service/GoogleSheet.md +71 -0
- package/contract-data/schema/v1/service/GoogleSheet.schema.json +31 -0
- package/contract-data/schema/v1/service/README.md +127 -0
- package/contract-data/schema/v1/service/_base.schema.json +31 -0
- package/contract-data/schema/v1/service/ksystem.md +76 -0
- package/contract-data/schema/v1/service/ksystem.schema.json +36 -0
- package/contract-data/schema/v1/service-binding.md +228 -0
- package/contract-data/schema/v1/service-binding.schema.json +51 -0
- package/contract-data/schema/v1/step.md +546 -0
- package/contract-data/schema/v1/step.schema.json +258 -0
- package/contract-data/schema/v1/style-objects.md +183 -0
- package/contract-data/schema/v1/style-objects.schema.json +155 -0
- package/contract-data/spec/catalog.json +406 -0
- package/contract-data/spec/rules.md +400 -0
- package/node_modules/@flextudio/contract-core/contract.mjs +367 -0
- package/node_modules/@flextudio/contract-core/index.mjs +16 -0
- package/node_modules/@flextudio/contract-core/package.json +21 -0
- package/node_modules/@flextudio/contract-core/paths.mjs +72 -0
- package/node_modules/@flextudio/contract-core/schemas.mjs +474 -0
- package/node_modules/@flextudio/contract-core/validators.mjs +2471 -0
- package/node_modules/ajv/.runkit_example.js +23 -0
- package/node_modules/ajv/LICENSE +22 -0
- package/node_modules/ajv/README.md +207 -0
- package/node_modules/ajv/dist/2019.d.ts +19 -0
- package/node_modules/ajv/dist/2019.js +61 -0
- package/node_modules/ajv/dist/2019.js.map +1 -0
- package/node_modules/ajv/dist/2020.d.ts +19 -0
- package/node_modules/ajv/dist/2020.js +55 -0
- package/node_modules/ajv/dist/2020.js.map +1 -0
- package/node_modules/ajv/dist/ajv.d.ts +18 -0
- package/node_modules/ajv/dist/ajv.js +50 -0
- package/node_modules/ajv/dist/ajv.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
- package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/node_modules/ajv/dist/compile/errors.js +123 -0
- package/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/node_modules/ajv/dist/compile/index.js +242 -0
- package/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/node_modules/ajv/dist/compile/names.js +28 -0
- package/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
- package/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/node_modules/ajv/dist/compile/rules.js +26 -0
- package/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/node_modules/ajv/dist/compile/util.js +178 -0
- package/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/node_modules/ajv/dist/core.d.ts +174 -0
- package/node_modules/ajv/dist/core.js +618 -0
- package/node_modules/ajv/dist/core.js.map +1 -0
- package/node_modules/ajv/dist/jtd.d.ts +47 -0
- package/node_modules/ajv/dist/jtd.js +72 -0
- package/node_modules/ajv/dist/jtd.js.map +1 -0
- package/node_modules/ajv/dist/refs/data.json +13 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
- package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/node_modules/ajv/dist/standalone/index.js +90 -0
- package/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/node_modules/ajv/dist/types/index.d.ts +183 -0
- package/node_modules/ajv/dist/types/index.js +3 -0
- package/node_modules/ajv/dist/types/index.js.map +1 -0
- package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
- package/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
- package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/node_modules/ajv/lib/2019.ts +81 -0
- package/node_modules/ajv/lib/2020.ts +75 -0
- package/node_modules/ajv/lib/ajv.ts +70 -0
- package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
- package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
- package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/node_modules/ajv/lib/compile/index.ts +324 -0
- package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
- package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/node_modules/ajv/lib/compile/names.ts +27 -0
- package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/node_modules/ajv/lib/compile/util.ts +213 -0
- package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
- package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
- package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/node_modules/ajv/lib/core.ts +892 -0
- package/node_modules/ajv/lib/jtd.ts +132 -0
- package/node_modules/ajv/lib/refs/data.json +13 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
- package/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/node_modules/ajv/lib/types/index.ts +244 -0
- package/node_modules/ajv/lib/types/json-schema.ts +187 -0
- package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
- package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
- package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
- package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
- package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/node_modules/ajv/package.json +126 -0
- package/node_modules/fast-deep-equal/LICENSE +21 -0
- package/node_modules/fast-deep-equal/README.md +96 -0
- package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/node_modules/fast-deep-equal/index.d.ts +4 -0
- package/node_modules/fast-deep-equal/index.js +46 -0
- package/node_modules/fast-deep-equal/package.json +61 -0
- package/node_modules/fast-deep-equal/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/react.js +53 -0
- package/node_modules/fast-uri/.gitattributes +2 -0
- package/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
- package/node_modules/fast-uri/LICENSE +30 -0
- package/node_modules/fast-uri/README.md +152 -0
- package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/node_modules/fast-uri/benchmark/package.json +17 -0
- package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/node_modules/fast-uri/eslint.config.js +6 -0
- package/node_modules/fast-uri/index.js +406 -0
- package/node_modules/fast-uri/lib/schemes.js +267 -0
- package/node_modules/fast-uri/lib/utils.js +443 -0
- package/node_modules/fast-uri/package.json +68 -0
- package/node_modules/fast-uri/test/ajv.test.js +43 -0
- package/node_modules/fast-uri/test/equal.test.js +117 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/node_modules/fast-uri/test/parse.test.js +323 -0
- package/node_modules/fast-uri/test/resolve.test.js +87 -0
- package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/node_modules/fast-uri/test/security-normalization.test.js +39 -0
- package/node_modules/fast-uri/test/security.test.js +133 -0
- package/node_modules/fast-uri/test/serialize.test.js +151 -0
- package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/node_modules/fast-uri/test/uri-js.test.js +912 -0
- package/node_modules/fast-uri/test/util.test.js +38 -0
- package/node_modules/fast-uri/tsconfig.json +9 -0
- package/node_modules/fast-uri/types/index.d.ts +60 -0
- package/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/node_modules/json-schema-traverse/LICENSE +21 -0
- package/node_modules/json-schema-traverse/README.md +95 -0
- package/node_modules/json-schema-traverse/index.d.ts +40 -0
- package/node_modules/json-schema-traverse/index.js +93 -0
- package/node_modules/json-schema-traverse/package.json +43 -0
- package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/node_modules/require-from-string/index.js +34 -0
- package/node_modules/require-from-string/license +21 -0
- package/node_modules/require-from-string/package.json +28 -0
- package/node_modules/require-from-string/readme.md +56 -0
- package/package.json +51 -0
- package/scripts/api-call.mjs +59 -0
- package/scripts/auth.mjs +262 -0
- package/scripts/build-skill-payload.mjs +338 -0
- package/scripts/cleanup.mjs +166 -0
- package/scripts/install-paths.mjs +146 -0
- package/scripts/postinstall.mjs +218 -0
- package/scripts/postpack.mjs +43 -0
- package/scripts/prepack.mjs +222 -0
- package/scripts/tty-menu.mjs +100 -0
- package/skill/README.md +55 -0
- package/skill/SKILL.md +138 -0
- package/skill/catalog.json +406 -0
- package/skill/design-rules.md +282 -0
- package/skill/design-system.md +235 -0
- package/skill/docs/SKELETON-SHELL.md +120 -0
- package/skill/docs/bottom-buttons.md +155 -0
- package/skill/docs/control/button.md +147 -0
- package/skill/docs/control/calendar-navigator.md +143 -0
- package/skill/docs/control/calendar.md +128 -0
- package/skill/docs/control/check-box.md +117 -0
- package/skill/docs/control/combo.md +293 -0
- package/skill/docs/control/embed.md +211 -0
- package/skill/docs/control/image-box.md +237 -0
- package/skill/docs/control/input-date.md +175 -0
- package/skill/docs/control/input-file.md +192 -0
- package/skill/docs/control/input-mask.md +89 -0
- package/skill/docs/control/input-number.md +55 -0
- package/skill/docs/control/input-text.md +73 -0
- package/skill/docs/control/label.md +127 -0
- package/skill/docs/control/multi-input-box.md +51 -0
- package/skill/docs/control/radio-box.md +150 -0
- package/skill/docs/control/search.md +163 -0
- package/skill/docs/control/tab.md +240 -0
- package/skill/docs/control/tree.md +278 -0
- package/skill/docs/control.md +264 -0
- package/skill/docs/data-objects.md +278 -0
- package/skill/docs/data-sources.md +215 -0
- package/skill/docs/events.md +467 -0
- package/skill/docs/group.md +146 -0
- package/skill/docs/index.json +125 -0
- package/skill/docs/mockup-data.md +186 -0
- package/skill/docs/node.md +32 -0
- package/skill/docs/scenario.md +112 -0
- package/skill/docs/service/CustomSystem.md +139 -0
- package/skill/docs/service/Firestore.md +125 -0
- package/skill/docs/service/FlexAutoQuery.md +128 -0
- package/skill/docs/service/FlexSQL.md +96 -0
- package/skill/docs/service/Flextudio API.md +161 -0
- package/skill/docs/service/Flextudio.md +87 -0
- package/skill/docs/service/GoogleSheet.md +71 -0
- package/skill/docs/service/README.md +127 -0
- package/skill/docs/service/ksystem.md +76 -0
- package/skill/docs/service-binding.md +228 -0
- package/skill/docs/step.md +546 -0
- package/skill/docs/style-objects.md +183 -0
- package/skill/examples/README.md +147 -0
- package/skill/examples/basic/basic-list-detail.json +2521 -0
- package/skill/examples/basic/delivery-address-popup.json +2175 -0
- package/skill/examples/basic/fixedtop-floating-form.json +1524 -0
- package/skill/examples/basic/search-period-popup.json +1524 -0
- package/skill/examples/design/booking-wizard-3step.json +1335 -0
- package/skill/examples/design/list-detail-form-3step.json +1516 -0
- package/skill/examples/design/list-filter-2step.json +1365 -0
- package/skill/examples/design/list-filter-detail-3step.json +1570 -0
- package/skill/examples/design/result-entry-wizard-4step.json +1861 -0
- package/skill/examples/index.json +150 -0
- package/skill/examples/intent/mock-employee-list.json +54 -0
- package/skill/examples/intent/script-cart-flow.json +96 -0
- package/skill/examples/intent/script-dialog-confirm.json +61 -0
- package/skill/intent-rules.md +552 -0
- package/skill/intent-system.md +118 -0
- package/skill/patterns/atom/badge.json +103 -0
- package/skill/patterns/atom/button.json +111 -0
- package/skill/patterns/atom/checkbox.json +70 -0
- package/skill/patterns/atom/segmented-radio.json +92 -0
- package/skill/patterns/atom/switch.json +57 -0
- package/skill/patterns/index.json +471 -0
- package/skill/patterns/molecule/checklist.json +107 -0
- package/skill/patterns/molecule/input-action.json +355 -0
- package/skill/patterns/molecule/input-button.json +212 -0
- package/skill/patterns/molecule/input-pair.json +284 -0
- package/skill/references/build-sequence.md +55 -0
- package/skill/references/patterns-cheatsheet.md +87 -0
- package/skill/references/spec-evolve/README.md +43 -0
- package/skill/references/spec-evolve/conventions.md +92 -0
- package/skill/references/spec-evolve/data-connection.md +102 -0
- package/skill/references/spec-evolve/intake.md +41 -0
- package/skill/references/spec-evolve/key-roles.md +44 -0
- package/skill/references/spec-evolve/lint.md +27 -0
- package/skill/references/spec-evolve/mockup.md +50 -0
- package/skill/references/spec-evolve/query-screens.md +66 -0
- package/skill/references/spec-evolve/routing.md +43 -0
- package/skill/references/spec-evolve/spec-format.md +76 -0
- package/skill/references/spec-evolve/templates/master-detail.spec.md +97 -0
- package/skill/references/spec-evolve/templates/query-screen.spec.md +96 -0
- package/skill/references/spec-evolve/templates/static-prototype.spec.md +54 -0
- package/skill/references/spec-evolve/templates-index.json +26 -0
- package/skill/rules.md +400 -0
- package/skill/schemas/bottom-buttons.schema.json +134 -0
- package/skill/schemas/control/_base.schema.json +1296 -0
- package/skill/schemas/control/button.schema.json +55 -0
- package/skill/schemas/control/calendar-navigator.schema.json +164 -0
- package/skill/schemas/control/calendar.schema.json +18 -0
- package/skill/schemas/control/check-box.schema.json +41 -0
- package/skill/schemas/control/combo.schema.json +23 -0
- package/skill/schemas/control/embed.schema.json +30 -0
- package/skill/schemas/control/image-box.schema.json +49 -0
- package/skill/schemas/control/input-date.schema.json +27 -0
- package/skill/schemas/control/input-file.schema.json +139 -0
- package/skill/schemas/control/input-mask.schema.json +45 -0
- package/skill/schemas/control/input-number.schema.json +24 -0
- package/skill/schemas/control/input-text.schema.json +24 -0
- package/skill/schemas/control/label.schema.json +113 -0
- package/skill/schemas/control/multi-input-box.schema.json +19 -0
- package/skill/schemas/control/other.schema.json +24 -0
- package/skill/schemas/control/radio-box.schema.json +87 -0
- package/skill/schemas/control/search.schema.json +23 -0
- package/skill/schemas/control/tab.schema.json +112 -0
- package/skill/schemas/control/tree.schema.json +83 -0
- package/skill/schemas/control.schema.json +30 -0
- package/skill/schemas/data-objects.schema.json +161 -0
- package/skill/schemas/data-sources.schema.json +184 -0
- package/skill/schemas/design-system/design.schema.json +496 -0
- package/skill/schemas/events.schema.json +272 -0
- package/skill/schemas/group.schema.json +133 -0
- package/skill/schemas/index.json +362 -0
- package/skill/schemas/naming-objects.schema.json +133 -0
- package/skill/schemas/node.schema.json +24 -0
- package/skill/schemas/patterns/atom/badge.schema.json +44 -0
- package/skill/schemas/patterns/atom/button.schema.json +70 -0
- package/skill/schemas/patterns/atom/checkbox.schema.json +39 -0
- package/skill/schemas/patterns/atom/segmented-radio.schema.json +49 -0
- package/skill/schemas/patterns/atom/switch.schema.json +27 -0
- package/skill/schemas/patterns/molecule/checklist.schema.json +63 -0
- package/skill/schemas/patterns/molecule/input-action.schema.json +251 -0
- package/skill/schemas/patterns/molecule/input-button.schema.json +141 -0
- package/skill/schemas/patterns/molecule/input-pair.schema.json +210 -0
- package/skill/schemas/scenario.schema.json +161 -0
- package/skill/schemas/service/CustomSystem.schema.json +41 -0
- package/skill/schemas/service/Firestore.schema.json +28 -0
- package/skill/schemas/service/FlexAutoQuery.schema.json +35 -0
- package/skill/schemas/service/FlexSQL.schema.json +33 -0
- package/skill/schemas/service/Flextudio API.schema.json +115 -0
- package/skill/schemas/service/Flextudio.schema.json +26 -0
- package/skill/schemas/service/GoogleSheet.schema.json +31 -0
- package/skill/schemas/service/_base.schema.json +31 -0
- package/skill/schemas/service/ksystem.schema.json +36 -0
- package/skill/schemas/service-binding.schema.json +51 -0
- package/skill/schemas/step.schema.json +258 -0
- package/skill/schemas/style-objects.schema.json +155 -0
- package/skill/skill-guides/README.md +50 -0
- package/skill/skill-guides/control-options.md +126 -0
- package/skill/skill-guides/events.md +61 -0
- package/skill/skill-guides/failure-discipline.md +95 -0
- package/skill/skill-guides/index.json +40 -0
- package/skill/skill-guides/prompt-interview.md +92 -0
- package/skill/skill-guides/scripts.md +169 -0
- package/skill/skill-guides/step-navigation.md +98 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# BottomButtons
|
|
2
|
+
|
|
3
|
+
Step 의 **하단 고정 버튼 채널**. `Step.BottomButtons` 배열의 각 항목 = 하나의 `BottomButton` 객체.
|
|
4
|
+
|
|
5
|
+
## 식별
|
|
6
|
+
|
|
7
|
+
- 위치: `Scenario.Steps[StepId].BottomButtons[*]`
|
|
8
|
+
- 토글: 같은 Step 의 `UseBottomButton: true` (false 면 빈 배열만 허용)
|
|
9
|
+
- 부모: **Step 의 직접 자식**. `Contents` / `FixedContentsTop` / `FixedContentsBottom` 의 자식 아님.
|
|
10
|
+
- StepSub 에서는 `UseBottomButton: false` 자동 강제 → BottomButtons 사용 불가.
|
|
11
|
+
|
|
12
|
+
## 스키마
|
|
13
|
+
|
|
14
|
+
`bottom-buttons.schema.json` — 단일 BottomButton 객체 정의. Step 스키마는 `BottomButtons: { type: "array", items: { $ref: "bottom-buttons.schema.json" } }` 로 합성.
|
|
15
|
+
|
|
16
|
+
## 핵심 필드
|
|
17
|
+
|
|
18
|
+
| 키 | 타입 | 비고 |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| `Id` | `f_숫자` | 🔴 필수, 시나리오 전체 유일 |
|
|
21
|
+
| `ButtonName` | string | 화면 표시 텍스트, 다국어 `{{}}` 권장 |
|
|
22
|
+
| `MoveTo` | enum | `Next` \| `None` \| `Prev` \| `Prev_ReStart` \| `Init` |
|
|
23
|
+
| `Next` | object | `MoveTo="Next"` 일 때 **필수**. `{ MoveStepOrder: ["StepN"], StepN: "" }` — **슬롯 값은 빈 문자열** |
|
|
24
|
+
| `Prev` | object | `MoveTo="Prev"` / `"Prev_ReStart"` 일 때 **필수**. `{ MoveStepOrder: [] }` |
|
|
25
|
+
| `Direction` | string | 네비게이션 방향 보조값. Next 버튼 canonical emit 은 `""` |
|
|
26
|
+
| `IsRestored` | bool / `""` | 콜렉션 이전 상태로 복원 (취소/Prev 흐름). Flextudio canonical emit 은 `""` |
|
|
27
|
+
| `IsIgnoreRequired` | bool | `MoveTo="Next"` 시 필수입력 검증 무시 여부. Flextudio Next 버튼 canonical emit |
|
|
28
|
+
| `IsRequired` | bool | `MoveTo="Prev"`/`"Prev_ReStart"` 시 필수입력 보존 여부 |
|
|
29
|
+
| `Events` | object | `{ "Click": "핸들러명" }`. UseEvents 토글 없이 직접 사용 |
|
|
30
|
+
| `LoadScript` | string | 동적 표시/숨김 (`f.bottom().style().display(...)`) |
|
|
31
|
+
| `Width`, `Height` | sizeObject | 버튼 크기 |
|
|
32
|
+
| `Padding`, `Margin` | spacing | 여백 |
|
|
33
|
+
| `BgStyle`, `FontStyle`, `BorderStyle` | style | 시각 스타일 |
|
|
34
|
+
| `ImageStyle` | object | ⚠️ **렌더링 시 적용 제외** (`bottombuttons.js`). 신규 생성 시 누락 권장 |
|
|
35
|
+
| `UseFixedSize` | bool | 고정 크기 사용 |
|
|
36
|
+
| `UseDesign` | bool | 디자인 묶음 적용 |
|
|
37
|
+
|
|
38
|
+
## MoveTo 분기 규칙 (상호배타)
|
|
39
|
+
|
|
40
|
+
| MoveTo | 동작 | top-level 키 (반드시) | top-level 키 (금지) |
|
|
41
|
+
|---|---|---|---|
|
|
42
|
+
| `Next` | 다음 Step 으로 이동 | `Next.MoveStepOrder` (1개 이상) + 각 StepN 슬롯 `""` | `Prev` |
|
|
43
|
+
| `Prev` | 이전 Step 으로 이동 | `Prev` (보통 `{ MoveStepOrder: [] }`) | `Next` |
|
|
44
|
+
| `Prev_ReStart` | 이전 Step 이동 + 재시작 | `Prev` | `Next` |
|
|
45
|
+
| `None` | 이동 없음, 이벤트만 실행 | (없음) — `Events.Click` 권장 | — |
|
|
46
|
+
| `Init` | 시나리오 처음 Step 이동 | (없음) | — |
|
|
47
|
+
|
|
48
|
+
> ⚠️ **Next 버튼에 placeholder Prev 박지 말 것**. 그 반대도 마찬가지. Flextudio 스튜디오는 한 쪽만 emit 한다.
|
|
49
|
+
|
|
50
|
+
## 핵심 함정 (LLM 생성 실패 사례)
|
|
51
|
+
|
|
52
|
+
1. **`Next.Step{N}` 슬롯 값이 빈 객체 `{}` 가 아니라 빈 문자열 `""`**:
|
|
53
|
+
```jsonc
|
|
54
|
+
// ❌ 잘못됨 — schema 거부
|
|
55
|
+
"Next": { "MoveStepOrder": ["Step2"], "Step2": {} }
|
|
56
|
+
|
|
57
|
+
// ✅ canonical
|
|
58
|
+
"Next": { "MoveStepOrder": ["Step2"], "Step2": "" }
|
|
59
|
+
```
|
|
60
|
+
문자열을 받는 이유는 조건/Direction 등 향후 슬롯 확장 여지가 있기 때문 (현재 엔진 emit 은 `""`).
|
|
61
|
+
|
|
62
|
+
2. **MoveTo=Next 인데 placeholder `Prev: { MoveStepOrder: [] }` 까지 emit** → schema 거부.
|
|
63
|
+
|
|
64
|
+
3. **MoveTo=Next 인데 `Direction` / `IsIgnoreRequired` 누락** — schema 가 강제하진 않지만 Flextudio canonical 형태에 맞추려면 함께 emit.
|
|
65
|
+
|
|
66
|
+
## Canonical 키 순서 (Flextudio emit 순서)
|
|
67
|
+
|
|
68
|
+
JSON 자체는 키 순서를 강제하지 않지만, 가능하면 Flextudio 스튜디오 emit 순서로 작성:
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
Id → ButtonName → MoveTo → (스타일 키: Width/Height/Padding/Margin/BgStyle/BorderStyle/FontStyle)
|
|
72
|
+
→ IsRestored → IsIgnoreRequired → Direction → Next | Prev
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## 예시
|
|
76
|
+
|
|
77
|
+
### 1) 다음 Step 으로 이동 (canonical)
|
|
78
|
+
|
|
79
|
+
```jsonc
|
|
80
|
+
{
|
|
81
|
+
"Id": "f_7",
|
|
82
|
+
"ButtonName": "{{등록}}",
|
|
83
|
+
"MoveTo": "Next",
|
|
84
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
85
|
+
"BgStyle": { "UseBackground": true, "BgColor": "var(--colorMain)" },
|
|
86
|
+
"IsRestored": "",
|
|
87
|
+
"IsIgnoreRequired": false,
|
|
88
|
+
"Direction": "",
|
|
89
|
+
"Next": {
|
|
90
|
+
"MoveStepOrder": ["Step2"],
|
|
91
|
+
"Step2": ""
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### 2) 이전 Step (저장 후 복귀)
|
|
97
|
+
|
|
98
|
+
```jsonc
|
|
99
|
+
{
|
|
100
|
+
"Id": "f_13",
|
|
101
|
+
"ButtonName": "{{취소}}",
|
|
102
|
+
"MoveTo": "Prev",
|
|
103
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
104
|
+
"IsRestored": "",
|
|
105
|
+
"Prev": { "MoveStepOrder": [] }
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### 3) 이벤트만 실행 (이동 없음)
|
|
110
|
+
|
|
111
|
+
```jsonc
|
|
112
|
+
{
|
|
113
|
+
"Id": "f_2",
|
|
114
|
+
"ButtonName": "{{승인}}",
|
|
115
|
+
"MoveTo": "None",
|
|
116
|
+
"Events": { "Click": "saveAndApprove" }
|
|
117
|
+
}
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Step 트리에서의 위치
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
Steps[StepN]
|
|
124
|
+
├── UseBottomButton: true ← 토글
|
|
125
|
+
├── StepButton: { ... } ← 영역(컨테이너) 스타일
|
|
126
|
+
├── BottomButtons: [ ← 본 스키마
|
|
127
|
+
│ { Id, ButtonName, MoveTo, ... },
|
|
128
|
+
│ ...
|
|
129
|
+
│ ]
|
|
130
|
+
├── Contents: [...] ← 별개 (메인 영역)
|
|
131
|
+
├── FixedContentsTop: [...]
|
|
132
|
+
└── FixedContentsBottom: [...]
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
`StepButton` 은 BottomButtons 영역 자체(컨테이너)의 스타일 묶음이며, 개별 버튼은 BottomButtons 배열의 각 항목이 본인 스타일(`BgStyle` 등)을 따로 가진다.
|
|
136
|
+
|
|
137
|
+
## 제약
|
|
138
|
+
|
|
139
|
+
1. **Id 유일성**: 시나리오의 모든 컨트롤/버튼과 충돌 금지 (`^f_[1-9][0-9]*$`).
|
|
140
|
+
2. **StepSub 금지**: StepSub Step 은 자체 화면이 없으므로 BottomButtons 비어있어야 함.
|
|
141
|
+
3. **MoveTo 별 키 상호배타**: `MoveTo="Next"` 이면 top-level `Next` 만, `MoveTo="Prev"/"Prev_ReStart"` 이면 top-level `Prev` 만 (반대편 키 emit 금지 — schema if/then 으로 강제).
|
|
142
|
+
4. **`MoveTo='Next'` + `Next.MoveStepOrder` 1개 이상**: 후보 Step 이 없으면 클릭 시 동작 없음.
|
|
143
|
+
5. **`Next.Step{N}` 슬롯 = 문자열**: canonical 빈 문자열 `""`. 빈 객체 `{}` 는 schema 가 거부.
|
|
144
|
+
6. **자기 자신 Step 참조**: BottomButton 의 `Next` 객체는 임의 Step 참조 가능 (`Step.Next` 의 forward-only 규칙과 별개). 단, 자기 자신 StepId 참조는 후검증에서 차단.
|
|
145
|
+
7. **ImageStyle 효과 없음**: 런타임(`bottombuttons.js`) 이 의도적으로 ImageStyle 적용을 건너뜀.
|
|
146
|
+
|
|
147
|
+
## 런타임 매핑
|
|
148
|
+
|
|
149
|
+
- 메타 키 ↔ 런타임 상수 (`public/engine/common/const.js`)
|
|
150
|
+
- `BottomButtons` ↔ `K_BOTTOMBUTTONS`
|
|
151
|
+
- `UseBottomButton` ↔ `K_USE_BTMBUTTON`
|
|
152
|
+
- `ButtonName` ↔ `K_BUTTONNAME`
|
|
153
|
+
- 컴포넌트 단위 ↔ `COMPONENT_UNIT.BOTTOMBUTTON = 'BottomButton'`
|
|
154
|
+
- 렌더러: `public/engine/runtime/bottombuttons.js` `renderBottomButtons()`
|
|
155
|
+
- fquery 컨트롤 함수: `fControlFuncs['bottom']` (`name()`, `style()` 등) + `fControlFuncs['common']`
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# Button
|
|
2
|
+
|
|
3
|
+
액션 트리거 전용 컨트롤. **입력 없음**. `ButtonName`(텍스트) + `ImageStyle`(아이콘) 단독 또는 조합으로 표현.
|
|
4
|
+
|
|
5
|
+
## 스키마
|
|
6
|
+
|
|
7
|
+
`control/button.schema.json` — `controlBase` + 분기 키 (`ControlType="Button"`, `ButtonName`, `ButtonValueCKey`, `ButtonValue`, `ImageStyle`, `UseClickEvent`).
|
|
8
|
+
|
|
9
|
+
## 표시 모드
|
|
10
|
+
|
|
11
|
+
| 구성 | 의미 |
|
|
12
|
+
|---|---|
|
|
13
|
+
| `ButtonName` 만 | 텍스트 버튼 |
|
|
14
|
+
| `ImageStyle.UseImage=true` + `ButtonName=""` | 아이콘 전용 버튼 |
|
|
15
|
+
| `ButtonName` + `ImageStyle.UseImage=true` | 아이콘 + 텍스트 |
|
|
16
|
+
|
|
17
|
+
## 예시 — 텍스트 버튼 + 클릭 이벤트
|
|
18
|
+
|
|
19
|
+
```jsonc
|
|
20
|
+
{
|
|
21
|
+
"ControlType": "Button",
|
|
22
|
+
"ControlStyle": "styleRectangleMain",
|
|
23
|
+
"ControlDefaultName": "BtnSubmit",
|
|
24
|
+
"ControlName2": "BtnSubmit",
|
|
25
|
+
"Caption": "BtnSubmit",
|
|
26
|
+
"Id": "f_20",
|
|
27
|
+
"ButtonName": "{{확인}}",
|
|
28
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
29
|
+
"Height": { "SizeValue": "44", "SizeUnit": "px", "MatchText": false },
|
|
30
|
+
"UseClickEvent": true,
|
|
31
|
+
"Events": { "Click": "SUBMIT_E" },
|
|
32
|
+
"isColumnCtrl": false
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## 예시 — 아이콘 전용 버튼
|
|
37
|
+
|
|
38
|
+
```jsonc
|
|
39
|
+
{
|
|
40
|
+
"ControlType": "Button",
|
|
41
|
+
"ControlStyle": "styleCircleBackPoint",
|
|
42
|
+
"ControlDefaultName": "BtnSearch",
|
|
43
|
+
"ControlName2": "BtnSearch",
|
|
44
|
+
"Caption": "BtnSearch",
|
|
45
|
+
"Id": "f_21",
|
|
46
|
+
"ButtonName": "",
|
|
47
|
+
"Width": { "SizeValue": "38", "SizeUnit": "px", "MatchText": false },
|
|
48
|
+
"Height": { "SizeValue": "38", "SizeUnit": "px", "MatchText": false },
|
|
49
|
+
"ImageStyle": {
|
|
50
|
+
"UseImage": true,
|
|
51
|
+
"IsLineIcon": true,
|
|
52
|
+
"Img": "B_000_017",
|
|
53
|
+
"ImageColor": "var(--colorWhite)",
|
|
54
|
+
"ImageSize": "18"
|
|
55
|
+
},
|
|
56
|
+
"BgStyle": { "UseBackground": true, "BgColor": "var(--colorMain)" },
|
|
57
|
+
"BorderStyle": { "Useborder": true, "BorderSize": "0", "SizeSet": "All", "BorderRadius": "6", "RadiusSet": "All" },
|
|
58
|
+
"UseClickEvent": true,
|
|
59
|
+
"Events": { "Click": "STEP1_Query_E" },
|
|
60
|
+
"UseFixedSize": true,
|
|
61
|
+
"isColumnCtrl": false
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## 예시 — 값 저장 버튼 (`ButtonValueCKey` + `ButtonValue`)
|
|
66
|
+
|
|
67
|
+
```jsonc
|
|
68
|
+
{
|
|
69
|
+
"ControlType": "Button",
|
|
70
|
+
"ControlDefaultName": "BtnAgreeY",
|
|
71
|
+
"ControlName2": "BtnAgreeY",
|
|
72
|
+
"Caption": "BtnAgreeY",
|
|
73
|
+
"Id": "f_22",
|
|
74
|
+
"ButtonName": "{{동의}}",
|
|
75
|
+
"ButtonValueCKey": "AgreeFlag",
|
|
76
|
+
"ButtonValue": "Y",
|
|
77
|
+
"UseClickEvent": false,
|
|
78
|
+
"isColumnCtrl": false
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
→ 클릭 시 카테고리의 `AgreeFlag` ckey 에 `"Y"` 가 저장. `UseClickEvent` 없이도 동작 (이벤트는 추가 핸들러 실행용).
|
|
83
|
+
|
|
84
|
+
## `ButtonName` 바인딩 표현식
|
|
85
|
+
|
|
86
|
+
Label `labeltext` 와 동일 규약. `Load.sector` 사용 불가.
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
"ButtonName": "{=FieldName}" // 직접 바인딩
|
|
90
|
+
"ButtonName": "{=$FieldName}" // 천단위 콤마 자동
|
|
91
|
+
"ButtonName": "{{삭제}} ({=Count})" // i18n + 바인딩
|
|
92
|
+
"ButtonName": "{% return f.numFormat('{=Price}').format() %}" // JS 실행
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## 데이터 바인딩 — `ButtonValueCKey` + `ButtonValue`
|
|
96
|
+
|
|
97
|
+
| 키 | 타입 | 의미 |
|
|
98
|
+
|---|---|---|
|
|
99
|
+
| `ButtonValueCKey` | string | 클릭 시 값을 저장할 **카테고리 필드명** (ckey). 빈 문자열=저장 안 함. |
|
|
100
|
+
| `ButtonValue` | string | 클릭 시 `ButtonValueCKey` 에 저장될 **정적 값**. 표현식/바인딩 미지원. |
|
|
101
|
+
|
|
102
|
+
**동작**: 사용자가 버튼을 누르면 카테고리의 `ButtonValueCKey` 필드값이 `ButtonValue` 로 set 된다. 이후 다른 컨트롤이 같은 ckey 를 읽으면 새 값을 받는다.
|
|
103
|
+
|
|
104
|
+
**대표 패턴** — Y/N 토글 한 쌍:
|
|
105
|
+
```jsonc
|
|
106
|
+
{ "ButtonName": "{{동의}}", "ButtonValueCKey": "AgreeFlag", "ButtonValue": "Y" }
|
|
107
|
+
{ "ButtonName": "{{비동의}}", "ButtonValueCKey": "AgreeFlag", "ButtonValue": "N" }
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**전제조건**: 상위 Group 계층 어딘가에 `UseDataConnection: true` + `DataConnection` 필요 (다른 ckey 바인딩 컨트롤과 동일 규칙).
|
|
111
|
+
|
|
112
|
+
## 클릭 이벤트
|
|
113
|
+
|
|
114
|
+
| 모드 | 키 | 비고 |
|
|
115
|
+
|---|---|---|
|
|
116
|
+
| 이벤트 | `UseClickEvent: true` + `Events: { Click: "EVENT_NAME" }` | 핸들러 호출 |
|
|
117
|
+
| 값 저장 | `ButtonValueCKey` + `ButtonValue` | 이벤트 핸들러 없이도 작동 |
|
|
118
|
+
|
|
119
|
+
`Events` 는 `_base.schema.json#/$defs/buttonEvents` 가 적용 — `Click` 핸들러만.
|
|
120
|
+
|
|
121
|
+
## Caption 규칙
|
|
122
|
+
|
|
123
|
+
Button 의 `Caption` 은 **내부명** (=`ControlDefaultName`). 화면 표시 텍스트는 항상 `ButtonName` 이 결정.
|
|
124
|
+
|
|
125
|
+
## BottomButton 과의 차이
|
|
126
|
+
|
|
127
|
+
`Step.BottomButtons[]` 의 항목과는 **별개 컨트롤**.
|
|
128
|
+
|
|
129
|
+
| 위치 | 키 | 비고 |
|
|
130
|
+
|---|---|---|
|
|
131
|
+
| `Step.Contents[…].Controls[…]` | `ControlType: "Button"` | 본 스키마 적용 — Step 이동 미지원 |
|
|
132
|
+
| `Step.BottomButtons[…]` | `ButtonName` 등 (ControlType 없음) | [bottom-buttons.schema.json](../bottom-buttons.schema.json) 적용 — Step 이동 지원 |
|
|
133
|
+
|
|
134
|
+
같은 `ButtonName` 키를 쓰지만 컨텍스트와 스키마가 다르므로 혼동 금지. **Step 이동 버튼은 BottomButton 으로**.
|
|
135
|
+
|
|
136
|
+
## ControlKey 상태 (제한)
|
|
137
|
+
|
|
138
|
+
Button 은 일부 상태가 미지원 — [control.md §ControlKey 상태](../control.md#controlkey-상태-제한) 표 참조. **`Required` 미지원** (입력 컨트롤 아님 — property-data.js `button()` 의 `status.hideItem(CONTROL_KEY.REQUIRED)`). `Hide` / `Disabled` / `ReadOnly` 는 지원.
|
|
139
|
+
|
|
140
|
+
## 함정
|
|
141
|
+
|
|
142
|
+
- `ButtonName` 안에서 `Load.sector` 사용 불가 — `{=Field}` 만.
|
|
143
|
+
- 아이콘 전용 버튼은 `ButtonName: ""` + `ImageStyle.UseImage: true`. `ButtonName` 키 자체를 빼지 말 것 (운영 메타 컨벤션).
|
|
144
|
+
- `UseClickEvent=true` 이면 `Events.Click` 필수.
|
|
145
|
+
- `ButtonValueCKey` 사용 시 상위 Group 계층 어딘가에 `UseDataConnection: true` + `DataConnection` 필요.
|
|
146
|
+
- `ButtonValue` 는 **정적 문자열만** — `{=Field}` / `{{i18n}}` 같은 표현식 미지원.
|
|
147
|
+
- BottomButton 과 스키마/위치가 다름. `Step.BottomButtons[]` 는 별도 스키마.
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# CalendarNavigator
|
|
2
|
+
|
|
3
|
+
> 공식 가이드: <https://docs.flextudio.com/flextudio/scenario/component/control/calendarnavigator>
|
|
4
|
+
|
|
5
|
+
캘린더 네비게이터 — 월·주·일 단위로 날짜 범위를 이동하면서 선택한 날짜를 컬렉션에 바인딩한다. 사용 형태는 두 가지.
|
|
6
|
+
|
|
7
|
+
| 형태 | UseTimeTable | 위치 |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| **TimeTable 내부 자식** | `true` | `TimeTable.CalendarNavigator.Controls[*]` |
|
|
10
|
+
| **독립 컨트롤** | `false` | Group 직접 자식 (래퍼 그룹은 `UseDataConnection: true` 필수) |
|
|
11
|
+
|
|
12
|
+
## 스키마
|
|
13
|
+
|
|
14
|
+
`control/calendar-navigator.schema.json` — `controlBase` 위에 분기 키.
|
|
15
|
+
|
|
16
|
+
## 핵심 속성
|
|
17
|
+
|
|
18
|
+
| 속성 | 값 | 설명 |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| `ControlStyle` | `""` / `"None"` / `"StyleBack"` / `"StyleHalf"` / `"StyleAlignLeft"` | 공식 4종 스타일. |
|
|
21
|
+
| `NavigatorType` | `"Month"` / `"WeekPeriod"` / `"Day"` | **공식 3종.** 월/주/일 단위. (`Custom` 은 공식 가이드 미표기 — **AI 생성 사용 금지.** 운영 메타에 보일 수는 있으나 신규 생성 시 enum 차단.) |
|
|
22
|
+
| `UseDaySelector` | `true` / `false` | 주간 날짜 선택 바(스와이프 지원). **boolean strict** — 문자열 `"true"`/`"false"` 금지. 값에 따라 바인딩 키가 갈림: `true` → `SingleDate.Ckeys`, `false` → `StartDate.Ckeys` + `EndDate.Ckeys`. |
|
|
23
|
+
| `UseTimeTable` | `true` / `false` | 독립 사용 시 `false`. |
|
|
24
|
+
| `NavigatorDateFormat` | 공식 10종 (아래) | 헤더 날짜 표시 포맷. |
|
|
25
|
+
| `SingleDate.Ckeys` | 배열 | Day 모드 또는 `UseDaySelector=true` 의 단일 날짜 바인딩. |
|
|
26
|
+
| `StartDate.Ckeys` / `EndDate.Ckeys` | 배열 | WeekPeriod / Month 모드의 기간 바인딩 (스키마 if/then 으로 두 키 동시 필수). |
|
|
27
|
+
| `DefaultValue` | string | 초기 날짜값 (미지정 시 오늘). |
|
|
28
|
+
|
|
29
|
+
### NavigatorDateFormat — 공식 10종
|
|
30
|
+
|
|
31
|
+
| 값 | 분류 | 비고 |
|
|
32
|
+
|---|---|---|
|
|
33
|
+
| `YYYY.MM.DD` / `YYYY/MM/DD` / `YYYY-MM-DD` / `YYYY년MM월DD일` | 일 단위 | Day / WeekPeriod / Month 모두 가능. |
|
|
34
|
+
| `YYYY-MM-W` | 주 단위 | **`NavigatorType: "WeekPeriod"` 전용** (스키마 if/then 차단). |
|
|
35
|
+
| `YYYY.MM` / `YYYY/MM` / `YYYY-MM` / `YYYY년MM월` | 월 단위 | 보통 Month 모드와 짝. |
|
|
36
|
+
| `YYYY년` | 년 단위 | |
|
|
37
|
+
| `""` | — | 런타임 기본 포맷. |
|
|
38
|
+
|
|
39
|
+
## 빈 객체라도 필수인 속성 (런타임 규약)
|
|
40
|
+
|
|
41
|
+
- `Events`
|
|
42
|
+
- `DayArea`
|
|
43
|
+
- `DaySetting`
|
|
44
|
+
- `SelectDay`
|
|
45
|
+
- `UseEvents`
|
|
46
|
+
|
|
47
|
+
스키마에서 `required` 로 강제. 누락 시 런타임 에러.
|
|
48
|
+
|
|
49
|
+
## 이벤트
|
|
50
|
+
|
|
51
|
+
`Events.CalendarNaviEventsOrder` 로 등록. 등록한 이벤트명에 동명 핸들러 필수 (if/then).
|
|
52
|
+
|
|
53
|
+
| 이벤트 | 발생 시점 |
|
|
54
|
+
|---|---|
|
|
55
|
+
| `ClickPrevNextBtn` | 이전/다음 버튼 클릭. |
|
|
56
|
+
| `OnChangeSwipe` | DaySelector 스와이프로 주 변경. |
|
|
57
|
+
| `SelectDay` | DaySelector 에서 날짜 클릭. |
|
|
58
|
+
|
|
59
|
+
## 예시 — 독립 컨트롤 (WeekPeriod)
|
|
60
|
+
|
|
61
|
+
```jsonc
|
|
62
|
+
{
|
|
63
|
+
"ContentsName": "calNavWrap",
|
|
64
|
+
"ContentsType": "Group",
|
|
65
|
+
"UseDataConnection": true,
|
|
66
|
+
"DataConnection": {
|
|
67
|
+
"TargetType": "category",
|
|
68
|
+
"DataUsage": "default",
|
|
69
|
+
"CategoryName": "CtgCalNav",
|
|
70
|
+
"UseNewSector": true,
|
|
71
|
+
"OnlyIfNoSector": true
|
|
72
|
+
},
|
|
73
|
+
"Id": "f_70",
|
|
74
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
75
|
+
"Height": { "MatchText": true, "SizeValue": "" },
|
|
76
|
+
"Contents": [{
|
|
77
|
+
"ControlType": "CalendarNavigator",
|
|
78
|
+
"ControlDefaultName": "CalNav1",
|
|
79
|
+
"ControlName2": "CalNav1",
|
|
80
|
+
"Caption": "CalNav1",
|
|
81
|
+
"Id": "f_71",
|
|
82
|
+
"NavigatorType": "WeekPeriod",
|
|
83
|
+
"UseDaySelector": true,
|
|
84
|
+
"UseTimeTable": false,
|
|
85
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
86
|
+
"Height": { "MatchText": true, "SizeValue": "" },
|
|
87
|
+
"SingleDate": { "Ckeys": ["SelectDate"] },
|
|
88
|
+
"StartDate": { "Ckeys": ["StartDate"] },
|
|
89
|
+
"EndDate": { "Ckeys": ["EndDate"] },
|
|
90
|
+
"Events": {
|
|
91
|
+
"CalendarNaviEventsOrder": ["ClickPrevNextBtn", "SelectDay"],
|
|
92
|
+
"ClickPrevNextBtn": "NavChange_E",
|
|
93
|
+
"SelectDay": "DaySelect_E"
|
|
94
|
+
},
|
|
95
|
+
"DayArea": {},
|
|
96
|
+
"DaySetting": {},
|
|
97
|
+
"SelectDay": {},
|
|
98
|
+
"UseEvents": true,
|
|
99
|
+
"isColumnCtrl": false
|
|
100
|
+
}]
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## 예시 — TimeTable 내부 자식
|
|
105
|
+
|
|
106
|
+
```jsonc
|
|
107
|
+
{
|
|
108
|
+
"ControlType": "TimeTable",
|
|
109
|
+
"UseCalendarNavigator": true,
|
|
110
|
+
"CalendarNavigator": {
|
|
111
|
+
"Controls": [{
|
|
112
|
+
"ControlType": "CalendarNavigator",
|
|
113
|
+
"UseDaySelector": true,
|
|
114
|
+
"UseTimeTable": true,
|
|
115
|
+
"NavigatorType": "Month",
|
|
116
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
117
|
+
"Height": { "MatchText": true, "SizeValue": "" },
|
|
118
|
+
"Events": { "CalendarNaviEventsOrder": [] },
|
|
119
|
+
"DayArea": {},
|
|
120
|
+
"DaySetting": {},
|
|
121
|
+
"SelectDay": {},
|
|
122
|
+
"SingleDate": { "Ckeys": ["SelectDate"] },
|
|
123
|
+
"UseEvents": false,
|
|
124
|
+
"Id": "f_72"
|
|
125
|
+
}]
|
|
126
|
+
},
|
|
127
|
+
"...": "..."
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## 데이터 바인딩
|
|
132
|
+
|
|
133
|
+
- 독립 사용 시 **반드시 래퍼 Group 에 `UseDataConnection: true`** + `DataConnection.CategoryName` 설정. `SingleDate/StartDate/EndDate.Ckeys` 가 그 카테고리의 섹터에 자동 저장.
|
|
134
|
+
- TimeTable 내부 사용 시 TimeTable 의 래퍼 Group 카테고리를 공유 (별도 카테고리 불필요).
|
|
135
|
+
|
|
136
|
+
## 함정
|
|
137
|
+
|
|
138
|
+
- 빈 객체라도 `Events`, `DayArea`, `DaySetting`, `SelectDay`, `UseEvents` 누락 시 런타임 에러.
|
|
139
|
+
- 독립 사용 시 `UseTimeTable: false` 명시 — 누락 시 TimeTable 컨텍스트로 오인.
|
|
140
|
+
- WeekPeriod / Month 모드에서 `StartDate.Ckeys` 또는 `EndDate.Ckeys` 누락 → 기간 필터 동작 안 함 (스키마 if/then 으로 차단).
|
|
141
|
+
- 날짜 변경 핸들러(`SelectDay`/`ClickPrevNextBtn`)에서 리스트 reload 시 래퍼 Group Id 사용 — 컨트롤 자체 reload 불가.
|
|
142
|
+
- **`NavigatorType: "Custom"` 사용 금지** — 공식 가이드 미표기. AI 생성 메타에는 절대 등장 금지 (스키마 enum 으로 차단).
|
|
143
|
+
- `NavigatorDateFormat: "YYYY-MM-W"` 는 반드시 `NavigatorType: "WeekPeriod"` 와 짝 (스키마 if/then 으로 차단).
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Calendar
|
|
2
|
+
|
|
3
|
+
> 공식 가이드(DatePicker): <https://docs.flextudio.com/flextudio/scenario/component/control/datepicker>
|
|
4
|
+
|
|
5
|
+
캘린더 컨트롤. 두 가지 사용 형태가 있고, **둘 다 v1 명시 분기**다.
|
|
6
|
+
|
|
7
|
+
| 형태 | 위치 | 비고 |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| **InputDate 자식** | `InputDate.Dialog.Layouts[*].Controls[*]` | 다이얼로그 picker. `CalendarType` / `SelectType` 은 InputDate 본체가 아니라 자식 Calendar 에 위치. |
|
|
10
|
+
| **단독** | Group 직접 자식 (`Step.Contents[…].Controls[…]`) | 인라인 캘린더. Group 안에 Control 로 그대로 배치 — OtherControl 이 아닌 `control/calendar.schema.json` 분기 사용. |
|
|
11
|
+
|
|
12
|
+
본체 정의는 `_base.schema.json#/$defs/calendarControl` 에 있고, 단독·자식 양쪽이 동일 분기를 공유한다 — InputDate 의 자식으로는 `dialogLayout` 의 if/then 으로, 단독으로는 `control/calendar.schema.json` 으로 적용.
|
|
13
|
+
|
|
14
|
+
## 스키마
|
|
15
|
+
|
|
16
|
+
`control/calendar.schema.json` — `controlBase` + `calendarControl` 의 합. `ControlType="Calendar"` const.
|
|
17
|
+
|
|
18
|
+
## CalendarType / SelectType 매트릭스
|
|
19
|
+
|
|
20
|
+
| CalendarType | DateFormat 짝 | SelectType | Ckeys 위치 |
|
|
21
|
+
|---|---|---|---|
|
|
22
|
+
| `dayCalendar` | `""` / `YYYY-MM-DD` / `YYYY.MM.DD` / `YYYY/MM/DD` | `SingleDate` 또는 `FromTo` | SingleDate.Ckeys 또는 StartDate.Ckeys + EndDate.Ckeys |
|
|
23
|
+
| `monthCalendar` | `""` 또는 `YYYY-MM` | `SingleDate` 만 | SingleDate.Ckeys |
|
|
24
|
+
| `yearCalendar` | `""` (기본) | `SingleDate` 만 | SingleDate.Ckeys |
|
|
25
|
+
|
|
26
|
+
스키마 if/then + `[date]` cross-check 강제:
|
|
27
|
+
|
|
28
|
+
- `SelectType="SingleDate"` → `SingleDate` **객체는 항상 필수**. `SingleDate.Ckeys` 는 **조상(또는 자기) Group 이 `UseDataConnection:true` 인 데이터연결 컨텍스트에서만 1개 이상 필수** — 비연결(프로토타이핑) 캘린더면 `"Ckeys": []` 허용. (단 `Ckeys` 키 자체는 항상 둘 것 — `SingleDate: {}` 빈 객체는 런타임 `dlgJson.SingleDate.Ckeys` 접근 시 TypeError.)
|
|
29
|
+
- `SelectType="FromTo"` → `StartDate` + `EndDate` **객체 모두 항상 필수**. 각 `Ckeys` 도 동일 규칙 — 데이터연결 컨텍스트면 1개 이상, 비연결이면 `[]`.
|
|
30
|
+
- `CalendarType ∈ {monthCalendar, yearCalendar}` → `SelectType` 은 `SingleDate` 만.
|
|
31
|
+
|
|
32
|
+
> ★ **빈 객체 금지** (`[date]` cross-check) — `SingleDate: {}` / `StartDate: {}` / `EndDate: {}` 처럼 `Ckeys` 누락된 빈 객체는 런타임 `dlgJson.SingleDate.Ckeys` / `dlgJson.StartDate.Ckeys` / `dlgJson.EndDate.Ckeys` 접근 시 TypeError 를 일으킨다. 분기 키 객체는 항상 `Ckeys: ["..."]` 와 함께 채울 것.
|
|
33
|
+
|
|
34
|
+
## 예시 — InputDate 자식 (가장 일반)
|
|
35
|
+
|
|
36
|
+
```jsonc
|
|
37
|
+
{
|
|
38
|
+
"ControlType": "InputDate",
|
|
39
|
+
"DateFormat": "YYYY-MM-DD",
|
|
40
|
+
"Dialog": {
|
|
41
|
+
"Layouts": [{
|
|
42
|
+
"ContentsType": "Layout",
|
|
43
|
+
"Controls": [{
|
|
44
|
+
"ControlType": "Calendar",
|
|
45
|
+
"CalendarType": "dayCalendar",
|
|
46
|
+
"SelectType": "SingleDate",
|
|
47
|
+
"SingleDate": { "Ckeys": ["AppDate"] },
|
|
48
|
+
"Id": "f_35"
|
|
49
|
+
}]
|
|
50
|
+
}]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## 예시 — 단독 (인라인 캘린더)
|
|
56
|
+
|
|
57
|
+
Group `Controls[]` 에 직접 배치. 운영 메타에서는 최소 6키만으로도 등장 (`Width`/`Height`/`isColumnCtrl` 생략 형태).
|
|
58
|
+
|
|
59
|
+
```jsonc
|
|
60
|
+
{
|
|
61
|
+
"ControlType": "Calendar",
|
|
62
|
+
"CalendarType": "dayCalendar",
|
|
63
|
+
"SelectType": "SingleDate",
|
|
64
|
+
"SingleDate": { "Ckeys": [] },
|
|
65
|
+
"ControlName2": "Calendar1",
|
|
66
|
+
"Caption": "Calendar1",
|
|
67
|
+
"Id": "f_4128"
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
AI 생성 시에는 controlBase 권장 키 (`ControlDefaultName`/`ControlName2`/`Width`/`Height`) 까지 채워 다음과 같이:
|
|
72
|
+
|
|
73
|
+
```jsonc
|
|
74
|
+
{
|
|
75
|
+
"ControlType": "Calendar",
|
|
76
|
+
"CalendarType": "dayCalendar",
|
|
77
|
+
"SelectType": "SingleDate",
|
|
78
|
+
"SingleDate": { "Ckeys": ["SelectDate"] },
|
|
79
|
+
"ControlDefaultName": "Calendar1",
|
|
80
|
+
"ControlName2": "Calendar1",
|
|
81
|
+
"Caption": "Calendar1",
|
|
82
|
+
"Id": "f_60",
|
|
83
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
84
|
+
"Height": { "MatchText": true, "SizeValue": "" },
|
|
85
|
+
"isColumnCtrl": false
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## 예시 — FromTo (기간 선택, dayCalendar 전용)
|
|
90
|
+
|
|
91
|
+
```jsonc
|
|
92
|
+
{
|
|
93
|
+
"ControlType": "Calendar",
|
|
94
|
+
"CalendarType": "dayCalendar",
|
|
95
|
+
"SelectType": "FromTo",
|
|
96
|
+
"StartDate": { "Ckeys": ["FromDate"] },
|
|
97
|
+
"EndDate": { "Ckeys": ["ToDate"] },
|
|
98
|
+
"Id": "f_61"
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## 데이터 바인딩
|
|
103
|
+
|
|
104
|
+
`SingleDate.Ckeys` / `StartDate.Ckeys` / `EndDate.Ckeys` 는 **상위 Group 계층 어딘가에** `UseDataConnection: true` + `DataConnection` 이 있어야 동작 (직접 부모 아닌 조상 Group 도 OK).
|
|
105
|
+
|
|
106
|
+
## 이벤트
|
|
107
|
+
|
|
108
|
+
`Events` 는 `_base.schema.json#/$defs/dateEvents` 가 적용. `DateOrder` enum: `DialogClose` 만.
|
|
109
|
+
|
|
110
|
+
```jsonc
|
|
111
|
+
{
|
|
112
|
+
"ControlType": "Calendar",
|
|
113
|
+
"UseEvents": true,
|
|
114
|
+
"Events": {
|
|
115
|
+
"DateOrder": ["DialogClose"],
|
|
116
|
+
"DialogClose": "ON_DATE_SELECTED"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
> InputDate 본체에 `UseEvents`/`Events` 두면 안 됨 — 자식 Calendar 안에 둔다.
|
|
122
|
+
|
|
123
|
+
## 함정
|
|
124
|
+
|
|
125
|
+
- **`CalendarType` 위치** — InputDate 본체가 아니라 자식 Calendar.
|
|
126
|
+
- `monthCalendar` 면 `DateFormat` 은 `""` 또는 `"YYYY-MM"` 만 (validate.mjs cross-check).
|
|
127
|
+
- `FromTo` 는 `dayCalendar` 전용 — 월/년 picker 에서는 if/then 차단.
|
|
128
|
+
- `Id` 는 시나리오 전체 유일성 검증 대상.
|