@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,312 @@
|
|
|
1
|
+
// _base.style.mjs
|
|
2
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
3
|
+
// 엔진 메타데이터 생성을 위한 스타일 추상화 레이어.
|
|
4
|
+
// 디자인 토큰 (spacing / typography / color) → 엔진 필드 객체
|
|
5
|
+
// (Padding, Margin, FontStyle, BorderStyle, BgStyle) 매핑
|
|
6
|
+
//
|
|
7
|
+
// 컨트롤과 패턴 레이에어서 스탈 관련 메타데이터에 헬퍼 함수로 사용
|
|
8
|
+
// 추상화 레이어를 메타데이터로 변환한 후 validation 실행
|
|
9
|
+
//
|
|
10
|
+
// ★ SSOT: 아래 토큰 테이블(SPACING / FONT_ROLE / COLOR)은 자체 값을 갖지 않고
|
|
11
|
+
// design-system/tokens.json 에서 파생한다. 이 모듈의 alias 이름(text.secondary /
|
|
12
|
+
// surface.brand 등)은 패턴 작성자(author)용 내부 어휘이고, 그 값은 전부 tokens.json
|
|
13
|
+
// 의 슬롯에서 온다. raw `var(--colorXxx)` 를 이 파일에 직접 쓰지 않는다.
|
|
14
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
15
|
+
|
|
16
|
+
import { readFileSync } from "node:fs";
|
|
17
|
+
import { dirname, join } from "node:path";
|
|
18
|
+
import { fileURLToPath } from "node:url";
|
|
19
|
+
|
|
20
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
21
|
+
const TOKENS = JSON.parse(
|
|
22
|
+
readFileSync(join(__dirname, "../design-system/tokens.json"), "utf8"),
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
// tokens.json 영역 별칭.
|
|
26
|
+
const PUBLIC_COLOR = TOKENS.color; // 외부 노출 design 키 슬롯 (main / body-soft / ...)
|
|
27
|
+
const PALETTE = TOKENS.palette; // 내부 전용 raw primitive (blue / pink / sub7 / ...)
|
|
28
|
+
|
|
29
|
+
// ============================================================================
|
|
30
|
+
// 토큰 테이블 — tokens.json 파생 (자체 값 없음)
|
|
31
|
+
// ============================================================================
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Spacing 스케일. tokens.json#/spacing 파생. 숫자 값은 테이블 우회 (resolveSpacing).
|
|
35
|
+
* xs/sm/md/lg/xl/xxl = 4/8/12/16/20/24.
|
|
36
|
+
*/
|
|
37
|
+
const SPACING = Object.freeze({ ...TOKENS.spacing });
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Typography 역할 프리셋. tokens.json#/typography 파생 (FontSize / FontWeight 짝).
|
|
41
|
+
* 짧은 alias(body-lg/md/sm)는 이 모듈 내부 편의용 — tokens.json 에는 노출하지 않는다.
|
|
42
|
+
*/
|
|
43
|
+
const FONT_ROLE = Object.freeze({
|
|
44
|
+
...TOKENS.typography,
|
|
45
|
+
"body-lg": TOKENS.typography["body-large"],
|
|
46
|
+
"body-md": TOKENS.typography["body-medium"],
|
|
47
|
+
"body-sm": TOKENS.typography["body-small"],
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* 작성자용 의미 컬러 어휘 → tokens.json 슬롯 값.
|
|
52
|
+
* 모든 값은 PUBLIC_COLOR(외부 슬롯) 또는 PALETTE(내부 primitive)에서 온다 — 하드코딩 없음.
|
|
53
|
+
* 매핑은 DESIGN.md §Colors 기준 (Ink / Body / Body Soft / Muted ...).
|
|
54
|
+
*/
|
|
55
|
+
const COLOR = Object.freeze({
|
|
56
|
+
// Text / ink
|
|
57
|
+
"text.primary": PUBLIC_COLOR.ink, // Ink — 강조 (icon stroke 포함)
|
|
58
|
+
"text.body": PUBLIC_COLOR.body, // Body — 헤딩 / 본문 강조
|
|
59
|
+
"text.secondary": PUBLIC_COLOR["body-soft"], // Body Soft — 부제 / 라벨 / 캡션 (가장 자주)
|
|
60
|
+
"text.muted": PUBLIC_COLOR.muted, // Muted — placeholder / disabled / soft meta
|
|
61
|
+
"text.on-brand": PUBLIC_COLOR["on-brand"], // On Brand — Main / Sub / Semantic 배경 위 텍스트
|
|
62
|
+
"text.error": PUBLIC_COLOR.error,
|
|
63
|
+
"text.link": PALETTE.blue,
|
|
64
|
+
|
|
65
|
+
// Surface / background
|
|
66
|
+
surface: PUBLIC_COLOR.card, // 기본 카드 / 시트 배경
|
|
67
|
+
"surface.subtle": PUBLIC_COLOR.subtle, // 섹션 배경 / 구분된 영역
|
|
68
|
+
"surface.tag": PUBLIC_COLOR["surface-strong"], // 칩 / 뱃지 기본 배경
|
|
69
|
+
"surface.brand": PUBLIC_COLOR.main, // Main 필 (Primary CTA 등)
|
|
70
|
+
"surface.brand-soft": PUBLIC_COLOR["main-light"], // Main 약한 배경 (hover / soft emphasis)
|
|
71
|
+
"surface.dark": PUBLIC_COLOR.dark, // dark feature card / inversion
|
|
72
|
+
|
|
73
|
+
// Border
|
|
74
|
+
"border.default": PUBLIC_COLOR.hairline, // Hairline — 1px divider / card outline
|
|
75
|
+
"border.strong": PUBLIC_COLOR["hairline-strong"], // Hairline Strong — interactive boundary / focus
|
|
76
|
+
"border.ink": PUBLIC_COLOR.ink,
|
|
77
|
+
|
|
78
|
+
// Semantic (DESIGN.md §Components → status-badge)
|
|
79
|
+
"semantic.success": PUBLIC_COLOR.success,
|
|
80
|
+
"semantic.failure": PUBLIC_COLOR.error,
|
|
81
|
+
"semantic.preview": PUBLIC_COLOR.preview,
|
|
82
|
+
"semantic.warning": PUBLIC_COLOR.warning,
|
|
83
|
+
"semantic.info": PALETTE.blue,
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
// ============================================================================
|
|
87
|
+
// 내부 resolver
|
|
88
|
+
// ============================================================================
|
|
89
|
+
|
|
90
|
+
function resolveSpacing(v) {
|
|
91
|
+
if (v == null || v === "") return "";
|
|
92
|
+
if (typeof v === "number") return String(v);
|
|
93
|
+
if (typeof v === "string") {
|
|
94
|
+
if (Object.hasOwn(SPACING, v)) return SPACING[v];
|
|
95
|
+
if (/^-?[0-9]+(\.[0-9]+)?$/.test(v)) return v;
|
|
96
|
+
throw new Error(`_base.style: 알 수 없는 spacing 토큰 '${v}'`);
|
|
97
|
+
}
|
|
98
|
+
throw new TypeError("_base.style: spacing 은 string|number 여야 함");
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function resolveColor(v) {
|
|
102
|
+
if (v == null) return "";
|
|
103
|
+
if (typeof v !== "string") {
|
|
104
|
+
throw new TypeError("_base.style: color 는 string 이어야 함");
|
|
105
|
+
}
|
|
106
|
+
if (v === "") return "";
|
|
107
|
+
if (Object.hasOwn(COLOR, v)) return COLOR[v]; // 작성자 의미 어휘 (text.* / surface.* ...)
|
|
108
|
+
if (Object.hasOwn(PUBLIC_COLOR, v)) return PUBLIC_COLOR[v]; // tokens.json 외부 슬롯 (main / ink ...)
|
|
109
|
+
if (Object.hasOwn(PALETTE, v)) return PALETTE[v]; // tokens.json 내부 primitive (blue / pink ...)
|
|
110
|
+
return v; // raw escape hatch — var(--...), #hex, rgb(...), keyword
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// ============================================================================
|
|
114
|
+
// Public API
|
|
115
|
+
// ============================================================================
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Padding / Margin / AbsolutePosition 용 spacing 객체 생성.
|
|
119
|
+
*
|
|
120
|
+
* padding("lg") 네 면 균일 16
|
|
121
|
+
* padding(16) 네 면 균일 raw 숫자
|
|
122
|
+
* padding({ all: "lg" }) opts 형태 균일
|
|
123
|
+
* padding({ x: "md", y: "sm" }) x = L+R, y = T+B
|
|
124
|
+
* padding({ top: 6, right: 12, btm: 6, left: 12 }) per-side 명시
|
|
125
|
+
* padding({ top: "sm", x: "lg" }) 혼합 (top + axis)
|
|
126
|
+
*
|
|
127
|
+
* Uniform 모드: { All, SizeUnit:"px", UseEach:false, UseAuto:true }.
|
|
128
|
+
* Per-side 모드: { Top, Right, Btm, Left, SizeUnit:"px",
|
|
129
|
+
* UseEach:true, UseAuto:true, All:"" }.
|
|
130
|
+
*
|
|
131
|
+
* per-side 모드에서 명시되지 않은 사이드는 "" (엔진 default).
|
|
132
|
+
*/
|
|
133
|
+
function spacingObject(input) {
|
|
134
|
+
// Uniform 단축.
|
|
135
|
+
if (typeof input === "string" || typeof input === "number") {
|
|
136
|
+
return {
|
|
137
|
+
All: resolveSpacing(input),
|
|
138
|
+
SizeUnit: "px",
|
|
139
|
+
UseEach: false,
|
|
140
|
+
UseAuto: true,
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
if (!input || typeof input !== "object") {
|
|
144
|
+
throw new TypeError("spacing(): input 은 string|number|object 여야 함");
|
|
145
|
+
}
|
|
146
|
+
const { all, x, y, top, right, btm, left } = input;
|
|
147
|
+
|
|
148
|
+
// 다른 키 없이 { all } 만 있으면 uniform.
|
|
149
|
+
if (
|
|
150
|
+
all != null &&
|
|
151
|
+
x == null &&
|
|
152
|
+
y == null &&
|
|
153
|
+
top == null &&
|
|
154
|
+
right == null &&
|
|
155
|
+
btm == null &&
|
|
156
|
+
left == null
|
|
157
|
+
) {
|
|
158
|
+
return {
|
|
159
|
+
All: resolveSpacing(all),
|
|
160
|
+
SizeUnit: "px",
|
|
161
|
+
UseEach: false,
|
|
162
|
+
UseAuto: true,
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
const pick = (side, axis) =>
|
|
167
|
+
side != null
|
|
168
|
+
? resolveSpacing(side)
|
|
169
|
+
: axis != null
|
|
170
|
+
? resolveSpacing(axis)
|
|
171
|
+
: "";
|
|
172
|
+
|
|
173
|
+
return {
|
|
174
|
+
Top: pick(top, y),
|
|
175
|
+
Right: pick(right, x),
|
|
176
|
+
Btm: pick(btm, y),
|
|
177
|
+
Left: pick(left, x),
|
|
178
|
+
SizeUnit: "px",
|
|
179
|
+
UseEach: true,
|
|
180
|
+
UseAuto: true,
|
|
181
|
+
All: "",
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export function padding(input) {
|
|
186
|
+
return spacingObject(input);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export function margin(input) {
|
|
190
|
+
return spacingObject(input);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* FontStyle 객체 생성.
|
|
195
|
+
*
|
|
196
|
+
* font({ size: "body-md", weight: "Regular", color: "text.primary" })
|
|
197
|
+
* font({ size: 14, weight: "Medium", color: "var(--colorBlack)", align: "center" })
|
|
198
|
+
* font({ size: "display-large", color: "text.primary" })
|
|
199
|
+
* font({ size: "body-small", color: "text.secondary" })
|
|
200
|
+
*
|
|
201
|
+
* - `size`: 역할 토큰 ("body-md" / "title-large" / "display-medium" / ...) 또는
|
|
202
|
+
* 명시적 숫자 / 숫자 문자열. 역할 토큰이면 preset 에서 FontSize + FontWeight
|
|
203
|
+
* - `weight`: 엔진 enum ("Regular" / "Medium" / "SemiBold" / "Bold").
|
|
204
|
+
* role 과 함께 주어지면 preset 을 override.
|
|
205
|
+
* - `color`: 의미적 토큰 ("text.primary" ...) 또는 raw 값
|
|
206
|
+
* ("var(--colorBlack)" / "#333" / "rgb(0,0,0)").
|
|
207
|
+
* - `align`: FontAlign ("flex-start" / "center" / "flex-end").
|
|
208
|
+
*/
|
|
209
|
+
export function font(opts = {}) {
|
|
210
|
+
const { size, weight, color, align } = opts;
|
|
211
|
+
|
|
212
|
+
let preset = {};
|
|
213
|
+
let explicitSize;
|
|
214
|
+
if (size != null) {
|
|
215
|
+
if (typeof size === "string" && Object.hasOwn(FONT_ROLE, size)) {
|
|
216
|
+
preset = FONT_ROLE[size];
|
|
217
|
+
} else if (typeof size === "string" || typeof size === "number") {
|
|
218
|
+
explicitSize = String(size);
|
|
219
|
+
} else {
|
|
220
|
+
throw new TypeError(
|
|
221
|
+
"font(): 'size' 는 role 토큰 또는 string|number 여야 함",
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
const out = { UseFont: true };
|
|
227
|
+
if (explicitSize != null) out.FontSize = explicitSize;
|
|
228
|
+
else if (preset.FontSize != null) out.FontSize = preset.FontSize;
|
|
229
|
+
|
|
230
|
+
if (weight != null) out.FontWeight = weight;
|
|
231
|
+
else if (preset.FontWeight != null) out.FontWeight = preset.FontWeight;
|
|
232
|
+
|
|
233
|
+
if (color != null) out.FontColor = resolveColor(color);
|
|
234
|
+
if (align != null) out.FontAlign = align;
|
|
235
|
+
return out;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* BorderStyle 객체 생성.
|
|
240
|
+
*
|
|
241
|
+
* border({ radius: 8, color: "border.strong", size: 1 }) full border
|
|
242
|
+
* border({ radius: 8 }) radius 만
|
|
243
|
+
* border() { Useborder: false }
|
|
244
|
+
*
|
|
245
|
+
* - `radius`: number/string → BorderRadius. 가시 border 유무 무관.
|
|
246
|
+
* - `color`: 토큰 또는 raw → BorderColor (있으면 가시 border).
|
|
247
|
+
* - `size`: BorderSize (color 가 있을 때 default 1). number/string.
|
|
248
|
+
* - `type`: "solid" / "dashed" / "dotted" (default "solid").
|
|
249
|
+
* - `radiusSet`: "All" / "Top" / "Right" / "Bottom" / "Left" (default "All").
|
|
250
|
+
* - `sideSet`: BorderSize 가 적용될 사이드 (default "All").
|
|
251
|
+
*/
|
|
252
|
+
export function border(opts = {}) {
|
|
253
|
+
const { radius, color, size, type, radiusSet, sideSet } = opts;
|
|
254
|
+
const out = {};
|
|
255
|
+
if (radius != null) {
|
|
256
|
+
out.BorderRadius = String(radius);
|
|
257
|
+
out.RadiusSet = radiusSet ?? "All";
|
|
258
|
+
}
|
|
259
|
+
const hasVisibleBorder = color != null && color !== "";
|
|
260
|
+
if (hasVisibleBorder) {
|
|
261
|
+
out.BorderColor = resolveColor(color);
|
|
262
|
+
out.BorderSize = String(size ?? 1);
|
|
263
|
+
out.BorderType = type ?? "solid";
|
|
264
|
+
out.SizeSet = sideSet ?? "All";
|
|
265
|
+
out.Useborder = true;
|
|
266
|
+
} else if (radius != null) {
|
|
267
|
+
// radius 만 — 엔진이 BorderRadius 적용하도록 Useborder 는 true
|
|
268
|
+
out.Useborder = true;
|
|
269
|
+
} else {
|
|
270
|
+
out.Useborder = false;
|
|
271
|
+
}
|
|
272
|
+
return out;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* BgStyle 객체 생성.
|
|
277
|
+
*
|
|
278
|
+
* bg("surface.subtle") { BgColor: "var(--colorGray9)", UseBackground: true }
|
|
279
|
+
* bg("var(--colorBlack)") { BgColor: "var(--colorBlack)", UseBackground: true }
|
|
280
|
+
* bg("") { BgColor: "", UseBackground: false }
|
|
281
|
+
* bg(null) | bg() { BgColor: "", UseBackground: false }
|
|
282
|
+
* bg({ color: "surface" }) { BgColor: "var(--colorWhite)", UseBackground: true }
|
|
283
|
+
*/
|
|
284
|
+
export function bg(input) {
|
|
285
|
+
if (input == null) {
|
|
286
|
+
return { BgColor: "", UseBackground: false };
|
|
287
|
+
}
|
|
288
|
+
if (typeof input === "string") {
|
|
289
|
+
if (input === "") return { BgColor: "", UseBackground: false };
|
|
290
|
+
return { BgColor: resolveColor(input), UseBackground: true };
|
|
291
|
+
}
|
|
292
|
+
if (typeof input === "object") {
|
|
293
|
+
const { color } = input;
|
|
294
|
+
if (color == null || color === "") {
|
|
295
|
+
return { BgColor: "", UseBackground: false };
|
|
296
|
+
}
|
|
297
|
+
return { BgColor: resolveColor(color), UseBackground: true };
|
|
298
|
+
}
|
|
299
|
+
throw new TypeError("bg(): input 은 string|object|null 이어야 함");
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
// ============================================================================
|
|
303
|
+
// 토큰 레지스트리 (읽기 전용 introspection)
|
|
304
|
+
// ============================================================================
|
|
305
|
+
|
|
306
|
+
export const tokens = Object.freeze({
|
|
307
|
+
spacing: SPACING,
|
|
308
|
+
font: FONT_ROLE,
|
|
309
|
+
color: COLOR, // 작성자 의미 어휘 (text.* / surface.* / border.* / semantic.*)
|
|
310
|
+
slot: PUBLIC_COLOR, // tokens.json 외부 노출 슬롯 (main / ink / body-soft ...)
|
|
311
|
+
palette: PALETTE, // tokens.json 내부 전용 primitive (blue / pink / sub7 ...)
|
|
312
|
+
});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// badge.materialize.mjs
|
|
2
|
+
// pattern.atom.badge — Label 컨트롤 기반 pill 형 뱃지.
|
|
3
|
+
//
|
|
4
|
+
// 메타 구조:
|
|
5
|
+
// - ControlType: Label, labeltext = label prop
|
|
6
|
+
// - Width = MatchText (텍스트 + Padding 만큼 fit)
|
|
7
|
+
// - Height = MatchText (factory default)
|
|
8
|
+
// - BgStyle: 5종 color 모두 동일 라이트 톤 (var(--colorSub10))
|
|
9
|
+
// - BorderStyle: BorderRadius:"999" (pill) + Useborder:true (radius gate)
|
|
10
|
+
// - FontStyle.FontColor: color prop 매핑
|
|
11
|
+
// - FontStyle.FontSize + Padding: size prop 매핑
|
|
12
|
+
|
|
13
|
+
import { makeLabel } from "../_base.controls.mjs";
|
|
14
|
+
import { generateId } from "../_base.id.mjs";
|
|
15
|
+
import { font, border, bg, padding, tokens } from "../_base.style.mjs";
|
|
16
|
+
import { makeOverride } from "../_base.additional-meta.mjs";
|
|
17
|
+
|
|
18
|
+
// color prop → FontColor 매핑 (사용자 명시). 값은 tokens.json 에서 (하드코딩 금지).
|
|
19
|
+
const FONT_COLOR_BY_COLOR = Object.freeze({
|
|
20
|
+
green: tokens.slot.main,
|
|
21
|
+
black: tokens.palette.sub7,
|
|
22
|
+
red: tokens.palette.pink,
|
|
23
|
+
blue: tokens.palette.blue,
|
|
24
|
+
gray: tokens.palette.sub9,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
// size prop → (FontSize, padX, padY) 매핑.
|
|
28
|
+
const STYLE_BY_SIZE = Object.freeze({
|
|
29
|
+
md: { fontSize: 13, padX: 8, padY: 4 },
|
|
30
|
+
lg: { fontSize: 16, padX: 10, padY: 6 },
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
// 5종 color 공통 라이트 배경 — 의미색은 텍스트에만 적용되고 bg 는 통일된 톤 유지.
|
|
34
|
+
const BG_TOKEN = tokens.palette.sub10;
|
|
35
|
+
|
|
36
|
+
// 텍스트 + Padding 만큼만 차지 (Width fit).
|
|
37
|
+
const W_FIT = Object.freeze({
|
|
38
|
+
MatchText: true,
|
|
39
|
+
SizeValue: "",
|
|
40
|
+
SizeUnit: "text",
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export default function materialize(props, ctx) {
|
|
44
|
+
const { label, color, size } = props;
|
|
45
|
+
const fc = FONT_COLOR_BY_COLOR[color];
|
|
46
|
+
const sz = STYLE_BY_SIZE[size];
|
|
47
|
+
if (!fc) throw new Error(`badge.materialize: unknown color '${color}'`);
|
|
48
|
+
if (!sz) throw new Error(`badge.materialize: unknown size '${size}'`);
|
|
49
|
+
const ov = makeOverride(props.override, "badge");
|
|
50
|
+
|
|
51
|
+
const out = {
|
|
52
|
+
...makeLabel({ text: label, name: "Badge" }),
|
|
53
|
+
Id: generateId(ctx),
|
|
54
|
+
Width: { ...W_FIT },
|
|
55
|
+
BgStyle: bg(BG_TOKEN),
|
|
56
|
+
BorderStyle: border({ radius: 999 }),
|
|
57
|
+
Padding: padding({ x: sz.padX, y: sz.padY }),
|
|
58
|
+
FontStyle: font({
|
|
59
|
+
size: sz.fontSize,
|
|
60
|
+
weight: "Bold",
|
|
61
|
+
color: fc,
|
|
62
|
+
}),
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const result = ov.apply("root", out);
|
|
66
|
+
ov.finalize(["root"]);
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://flextudio.local/meta-contract/v1/patterns/atom/badge.schema.json",
|
|
4
|
+
"title": "pattern.atom.badge",
|
|
5
|
+
"description": "상태/카테고리 라벨용 pill 형 뱃지. Label + pill BorderRadius(999) + 라이트 배경(`var(--colorSub10)`) + Bold 텍스트. 너비는 텍스트에 맞춰 자동 fit, 높이도 텍스트 + Padding 으로 결정. color 는 의미적 5종(green/black/red/blue/gray) — FontColor 만 바뀌고 배경은 5종 모두 동일한 라이트 톤이라 인접 정보 위에 얹어도 충돌 없음. size 는 md/lg 두 단계.",
|
|
6
|
+
"x-tier": "atom",
|
|
7
|
+
"x-tags": ["badge", "tag", "status", "label", "chip"],
|
|
8
|
+
"x-related": [],
|
|
9
|
+
"type": "object",
|
|
10
|
+
"additionalProperties": false,
|
|
11
|
+
"required": ["label", "color", "size"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"label": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 1,
|
|
16
|
+
"maxLength": 20,
|
|
17
|
+
"description": "뱃지에 표시할 짧은 텍스트. 다국어 토큰 `{{key}}` / 정적 바인딩 `{=Field}` 가능."
|
|
18
|
+
},
|
|
19
|
+
"color": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"enum": ["green", "black", "red", "blue", "gray"],
|
|
22
|
+
"description": "의미 색상 (FontColor 만 매핑, 배경은 모두 동일 라이트 톤). green=긍정/완료 / black=중립 강조 / red=경고/실패 / blue=정보 / gray=비활성/보조."
|
|
23
|
+
},
|
|
24
|
+
"size": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": ["md", "lg"],
|
|
27
|
+
"description": "크기. md=폰트13/패딩 4·8 / lg=폰트16/패딩 6·10."
|
|
28
|
+
},
|
|
29
|
+
"override": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"propertyNames": { "enum": ["root"] },
|
|
32
|
+
"additionalProperties": { "type": "object" },
|
|
33
|
+
"description": "(L1 escape hatch) 패턴이 노출하지 않는 raw 엔진 메타데이터를 materialized 결과 노드에 deep-merge 로 주입한다. 이 패턴은 단일 컨트롤이라 anchor 는 'root'(결과 노드 자체) 하나. 값은 해당 ControlType 에 유효한 control 레벨 필드 패치이며, 어떤 엔진 스키마에든 정의된 필드명만 검증을 통과한다(예: ControlKey, DefaultValue, 이벤트 바인딩). ★ UseMove/MoveSteps 같은 Step 이동(Group 레벨) 기능은 atom 컨트롤이 아니라 Group(molecule 의 root anchor / raw Group)에 주입한다. 배열 필드는 deep-merge 가 아니라 통째 교체된다. props 로 충분한 일반 케이스엔 쓰지 않는다.",
|
|
34
|
+
"examples": [{ "root": { "UseClickEvent": true, "Events": { "Click": "openDetail" } } }]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"examples": [
|
|
38
|
+
{ "label": "승인", "color": "green", "size": "md" },
|
|
39
|
+
{ "label": "반려", "color": "red", "size": "md" },
|
|
40
|
+
{ "label": "대기", "color": "gray", "size": "md" },
|
|
41
|
+
{ "label": "NEW", "color": "blue", "size": "lg" },
|
|
42
|
+
{ "label": "{{공지}}", "color": "black", "size": "md" }
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// button.materialize.mjs
|
|
2
|
+
// pattern.atom.button — DESIGN.md §Buttons 토큰 매핑.
|
|
3
|
+
// v1 엔진에 Button ControlType 이 없으므로 Label + UseClickEvent 패턴.
|
|
4
|
+
|
|
5
|
+
import { makeLabel, makeMoveSteps } from "../_base.controls.mjs";
|
|
6
|
+
import { generateId } from "../_base.id.mjs";
|
|
7
|
+
import { font, border, bg, padding, tokens } from "../_base.style.mjs";
|
|
8
|
+
import { makeOverride } from "../_base.additional-meta.mjs";
|
|
9
|
+
|
|
10
|
+
// variant → 색 토큰. DESIGN.md §Buttons.
|
|
11
|
+
//
|
|
12
|
+
// - primary: surface.brand 채움 + on-brand 글자 (Main / White).
|
|
13
|
+
// - secondary: surface 흰 카드 + border.strong 1px hairline + text.primary 검정 글자.
|
|
14
|
+
// - tertiary: 배경 투명 + Main 글자 (tokens.json#/color main 슬롯).
|
|
15
|
+
const VARIANT = Object.freeze({
|
|
16
|
+
primary: {
|
|
17
|
+
bg: "surface.brand",
|
|
18
|
+
fontColor: "text.on-brand",
|
|
19
|
+
borderColor: null,
|
|
20
|
+
},
|
|
21
|
+
secondary: {
|
|
22
|
+
bg: "surface",
|
|
23
|
+
fontColor: "text.primary",
|
|
24
|
+
borderColor: "border.strong",
|
|
25
|
+
},
|
|
26
|
+
tertiary: {
|
|
27
|
+
bg: null,
|
|
28
|
+
fontColor: tokens.slot.main,
|
|
29
|
+
borderColor: null,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
// CTA 표준 사이즈 (DESIGN.md §Do's: BorderRadius "8", FontSize "16", FontWeight SemiBold).
|
|
34
|
+
const HEIGHT_FIXED = Object.freeze({
|
|
35
|
+
SizeValue: "48",
|
|
36
|
+
SizeUnit: "px",
|
|
37
|
+
MatchText: false,
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
// width="fit": Width 메타를 MatchText 로 두면 엔진이 content + padding 으로 측정.
|
|
41
|
+
const WIDTH_FIT = Object.freeze({
|
|
42
|
+
MatchText: true,
|
|
43
|
+
SizeValue: "",
|
|
44
|
+
SizeUnit: "text",
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export default function materialize(props, ctx) {
|
|
48
|
+
const { label, variant, width, onClick, moveStep } = props;
|
|
49
|
+
const ov = makeOverride(props.override, "button");
|
|
50
|
+
const v = VARIANT[variant];
|
|
51
|
+
if (!v) {
|
|
52
|
+
throw new Error(`button.materialize: unknown variant '${variant}'`);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const out = {
|
|
56
|
+
...makeLabel({ name: "Button", text: label }),
|
|
57
|
+
Id: generateId(ctx),
|
|
58
|
+
Height: { ...HEIGHT_FIXED },
|
|
59
|
+
FontStyle: font({
|
|
60
|
+
size: "title-medium", // 16 / SemiBold
|
|
61
|
+
weight: "SemiBold",
|
|
62
|
+
color: v.fontColor,
|
|
63
|
+
align: "center",
|
|
64
|
+
}),
|
|
65
|
+
BorderStyle: border({ radius: 8, color: v.borderColor }),
|
|
66
|
+
BgStyle: bg(v.bg),
|
|
67
|
+
Padding: padding({ y: "md", x: "lg" }), // 12 × 16
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// width="full" → factory default Width(100%) 유지. "fit" → MatchText 로 덮음.
|
|
71
|
+
if (width === "fit") {
|
|
72
|
+
out.Width = { ...WIDTH_FIT };
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// 핸들러 미지정 → 시각적 버튼. 지정 시 Label 의 click 패턴 활성.
|
|
76
|
+
if (onClick != null && onClick !== "") {
|
|
77
|
+
out.UseClickEvent = true;
|
|
78
|
+
out.Events = { Click: onClick };
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// moveStep 지정 → 클릭 시 해당 Step 으로 이동 (Label.UseMove). onClick 과
|
|
82
|
+
// 함께 쓰면 엔진은 UseMove 를 먼저 처리한다 (label.schema 설명).
|
|
83
|
+
if (moveStep != null && moveStep !== "") {
|
|
84
|
+
out.UseMove = true;
|
|
85
|
+
out.MoveSteps = makeMoveSteps(moveStep);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const result = ov.apply("root", out);
|
|
89
|
+
ov.finalize(["root"]);
|
|
90
|
+
return result;
|
|
91
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://flextudio.local/meta-contract/v1/patterns/atom/button.schema.json",
|
|
4
|
+
"title": "pattern.atom.button",
|
|
5
|
+
"description": "버튼 액션 아톰. v1 엔진에 'Button' ControlType 이 없으므로 Label + UseClickEvent 패턴으로 materialize. 시각적 강조 수준(variant) 3종 — primary 는 화면당 1개 CTA 권장(`Step.FixedContentsBottom` 자리), secondary 는 보조 액션, tertiary 는 인라인 텍스트 액션. 너비는 full(100%) 또는 fit(content + padding) 두 가지. 라운드/타이포/색은 DESIGN.md §Buttons + §Do's 기준이라 prop 으로 노출하지 않는다.",
|
|
6
|
+
"x-tier": "atom",
|
|
7
|
+
"x-tags": ["button", "action", "cta"],
|
|
8
|
+
"x-related": [],
|
|
9
|
+
"type": "object",
|
|
10
|
+
"additionalProperties": false,
|
|
11
|
+
"required": ["label", "variant", "width"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"label": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 1,
|
|
16
|
+
"maxLength": 40,
|
|
17
|
+
"description": "버튼에 표시할 텍스트. 다국어 토큰 `{{key}}` 또는 데이터 바인딩 `{=Field}` 사용 가능."
|
|
18
|
+
},
|
|
19
|
+
"variant": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"enum": ["primary", "secondary", "tertiary"],
|
|
22
|
+
"description": "시각적 강조 수준. primary=Main 채움 + 흰 글자(CTA 표준) / secondary=흰 배경 + 1px Gray4 hairline + 검정 글자(보조 액션) / tertiary=투명 배경 + Main 글자(인라인 텍스트 액션)."
|
|
23
|
+
},
|
|
24
|
+
"width": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": ["full", "fit"],
|
|
27
|
+
"description": "full=부모 너비 100% (CTA 표준 — Bottom 바, 폼 제출) / fit=내용 + padding 만큼(인라인 액션, 카드 내부 보조 버튼). fit 은 Width 메타를 MatchText 로 두어 엔진이 자동 측정."
|
|
28
|
+
},
|
|
29
|
+
"onClick": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1,
|
|
32
|
+
"maxLength": 100,
|
|
33
|
+
"description": "(선택) 클릭 핸들러 이름. `scenario.Events` 에 정의된 핸들러 키 — [event-ref] 룰로 정합 검증. 미지정 시 UseClickEvent:false (시각적 버튼만)."
|
|
34
|
+
},
|
|
35
|
+
"moveStep": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^Step[1-9][0-9]*$",
|
|
38
|
+
"description": "(선택) 클릭 시 이동할 대상 Step ID (예: 'Step3'). 지정 시 UseMove:true + MoveSteps 자동 생성 (해당 Step 으로 MoveTo:Next, Direction:toRight 단순 이동). onClick 과 함께 쓰면 엔진이 UseMove 를 먼저 처리. 더 복잡한 조건/방향은 override 로 MoveSteps 를 직접 지정."
|
|
39
|
+
},
|
|
40
|
+
"override": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"propertyNames": { "enum": ["root"] },
|
|
43
|
+
"additionalProperties": { "type": "object" },
|
|
44
|
+
"description": "(L1 escape hatch) 패턴이 노출하지 않는 raw 엔진 메타데이터를 materialized 결과 노드에 deep-merge 로 주입한다. 이 패턴은 단일 컨트롤이라 anchor 는 'root'(결과 노드 자체) 하나. 값은 해당 ControlType 에 유효한 control 레벨 필드 패치이며, 어떤 엔진 스키마에든 정의된 필드명만 검증을 통과한다(예: ControlKey, DefaultValue, 이벤트 바인딩). ★ UseMove/MoveSteps 같은 Step 이동(Group 레벨) 기능은 atom 컨트롤이 아니라 Group(molecule 의 root anchor / raw Group)에 주입한다. 배열 필드는 deep-merge 가 아니라 통째 교체된다. props 로 충분한 일반 케이스엔 쓰지 않는다.",
|
|
45
|
+
"examples": [{ "root": { "ControlKey": "ReadOnly" } }]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"examples": [
|
|
49
|
+
{
|
|
50
|
+
"label": "로그인",
|
|
51
|
+
"variant": "primary",
|
|
52
|
+
"width": "full",
|
|
53
|
+
"onClick": "submitLogin"
|
|
54
|
+
},
|
|
55
|
+
{ "label": "{{취소}}", "variant": "secondary", "width": "fit" },
|
|
56
|
+
{
|
|
57
|
+
"label": "건너뛰기",
|
|
58
|
+
"variant": "tertiary",
|
|
59
|
+
"width": "fit",
|
|
60
|
+
"onClick": "skipStep"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"label": "조회",
|
|
64
|
+
"variant": "primary",
|
|
65
|
+
"width": "full",
|
|
66
|
+
"onClick": "runQuery"
|
|
67
|
+
},
|
|
68
|
+
{ "label": "다음", "variant": "primary", "width": "full", "moveStep": "Step3" }
|
|
69
|
+
]
|
|
70
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// checkbox.materialize.mjs
|
|
2
|
+
// pattern.atom.checkbox — 단일 체크박스 + 라벨.
|
|
3
|
+
//
|
|
4
|
+
// Expo 디자인 — 체크 시 박스 내부가 Ink(var(--colorBlack)) 으로 채워지므로
|
|
5
|
+
// ItemBgStyle.ItemBgColor 를 var(--colorBlack) 로 박는다. 나머지(체크 아이콘 색, 외곽선)
|
|
6
|
+
// 은 엔진 기본값에 맡긴다.
|
|
7
|
+
|
|
8
|
+
import { makeCheckBox } from "../_base.controls.mjs";
|
|
9
|
+
import { generateId } from "../_base.id.mjs";
|
|
10
|
+
import { font, tokens } from "../_base.style.mjs";
|
|
11
|
+
import { makeOverride } from "../_base.additional-meta.mjs";
|
|
12
|
+
|
|
13
|
+
// Expo 검정 채움 — DESIGN.md §Colors §Text 의 Ink (tokens.json#/color ink).
|
|
14
|
+
const ITEM_BG_INK = Object.freeze({
|
|
15
|
+
ItemBgColor: tokens.slot.ink,
|
|
16
|
+
UseItemBackground: true,
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export default function materialize(props, ctx) {
|
|
20
|
+
const { label, size = 16 } = props;
|
|
21
|
+
const ov = makeOverride(props.override, "checkbox");
|
|
22
|
+
|
|
23
|
+
const out = {
|
|
24
|
+
...makeCheckBox({
|
|
25
|
+
name: "Checkbox",
|
|
26
|
+
items: [{ ItemName: label, ItemValue: "Y", ItemValueDel: "" }],
|
|
27
|
+
}),
|
|
28
|
+
Id: generateId(ctx),
|
|
29
|
+
FontStyle: font({
|
|
30
|
+
size, // 숫자 → 명시 FontSize. role 토큰 매칭 안 됨.
|
|
31
|
+
weight: "Regular",
|
|
32
|
+
color: "text.primary",
|
|
33
|
+
}),
|
|
34
|
+
ItemBgStyle: { ...ITEM_BG_INK },
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const result = ov.apply("root", out);
|
|
38
|
+
ov.finalize(["root"]);
|
|
39
|
+
return result;
|
|
40
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://flextudio.local/meta-contract/v1/patterns/atom/checkbox.schema.json",
|
|
4
|
+
"title": "pattern.atom.checkbox",
|
|
5
|
+
"description": "단일 체크박스 아톰. label 옆에 사각 체크박스를 표시한다. Expo 디자인 언어 — 체크 시 박스 내부가 Ink(검정) 으로 채워진다(`ItemBgStyle.ItemBgColor: var(--colorBlack)`). 폼 동의 / 토글 / 선택지 1개에 사용. 다중 선택 그룹은 RadioBox 또는 다중 체크박스 패턴(별도) 사용.",
|
|
6
|
+
"x-tier": "atom",
|
|
7
|
+
"x-tags": ["checkbox", "toggle", "form"],
|
|
8
|
+
"x-related": [],
|
|
9
|
+
"type": "object",
|
|
10
|
+
"additionalProperties": false,
|
|
11
|
+
"required": ["label"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"label": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 1,
|
|
16
|
+
"maxLength": 60,
|
|
17
|
+
"description": "체크박스 옆 라벨 텍스트. 다국어 토큰 `{{key}}` 사용 가능."
|
|
18
|
+
},
|
|
19
|
+
"size": {
|
|
20
|
+
"type": "integer",
|
|
21
|
+
"minimum": 10,
|
|
22
|
+
"maximum": 32,
|
|
23
|
+
"default": 16,
|
|
24
|
+
"description": "텍스트 크기(px). 체크박스 아이콘도 폰트 크기와 함께 스케일. 기본 16."
|
|
25
|
+
},
|
|
26
|
+
"override": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"propertyNames": { "enum": ["root"] },
|
|
29
|
+
"additionalProperties": { "type": "object" },
|
|
30
|
+
"description": "(L1 escape hatch) 패턴이 노출하지 않는 raw 엔진 메타데이터를 materialized 결과 노드에 deep-merge 로 주입한다. 이 패턴은 단일 컨트롤이라 anchor 는 'root'(결과 노드 자체) 하나. 값은 해당 ControlType 에 유효한 control 레벨 필드 패치이며, 어떤 엔진 스키마에든 정의된 필드명만 검증을 통과한다(예: ControlKey, DefaultValue, 이벤트 바인딩). ★ UseMove/MoveSteps 같은 Step 이동(Group 레벨) 기능은 atom 컨트롤이 아니라 Group(molecule 의 root anchor / raw Group)에 주입한다. 배열 필드는 deep-merge 가 아니라 통째 교체된다. props 로 충분한 일반 케이스엔 쓰지 않는다.",
|
|
31
|
+
"examples": [{ "root": { "DefaultValue": true } }]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"examples": [
|
|
35
|
+
{ "label": "약관에 동의합니다" },
|
|
36
|
+
{ "label": "기억하기", "size": 14 },
|
|
37
|
+
{ "label": "{{필수항목동의}}", "size": 16 }
|
|
38
|
+
]
|
|
39
|
+
}
|