@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,211 @@
|
|
|
1
|
+
# Embed
|
|
2
|
+
|
|
3
|
+
> 공식 가이드: <https://docs.flextudio.com/flextudio/scenario/component/control/embed>
|
|
4
|
+
|
|
5
|
+
raw HTML 을 화면에 직접 삽입하는 컨트롤. `Embed` 속성에 HTML 문자열을 두면 그대로 렌더된다 — 내장 컨트롤로 표현이 어려운 비디오/iframe/외부 라이브러리 캔버스/style 주입 등에 사용.
|
|
6
|
+
|
|
7
|
+
## 스키마
|
|
8
|
+
|
|
9
|
+
`control/embed.schema.json` — `controlBase` + `Embed` (raw HTML).
|
|
10
|
+
|
|
11
|
+
## 필수 / 핵심 규칙
|
|
12
|
+
|
|
13
|
+
| 속성 | 비고 |
|
|
14
|
+
|---|---|
|
|
15
|
+
| `Embed` | ★ raw HTML 문자열. `<video>` / `<iframe>` / `<canvas>` / `<div>` / `<style>` 등. 섹터 값 바인딩은 `{%return Load.sector.Field; %}` (LoadScript 토큰) — **`{=Field}` 는 Embed 안에서 치환되지 않음, 사용 금지 (`[embed-bind]`)**. |
|
|
16
|
+
| `Caption` | ★ **반드시 빈 문자열 `""`** — Embed 본체에 그대로 표시되므로 ControlDefaultName 등 내부명 두면 노출됨 (스키마 const "" 강제). |
|
|
17
|
+
| `Width` / `Height` | 콘텐츠에 맞게. style-only Embed 는 0px × 0px (보이지 않게). |
|
|
18
|
+
|
|
19
|
+
## 기본 예시 — 비디오 임베드
|
|
20
|
+
|
|
21
|
+
```jsonc
|
|
22
|
+
{
|
|
23
|
+
"ControlType": "Embed",
|
|
24
|
+
"Id": "f_46",
|
|
25
|
+
"ControlDefaultName": "Embed1",
|
|
26
|
+
"ControlName2": "Embed1",
|
|
27
|
+
"Caption": "",
|
|
28
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
29
|
+
"Height": { "SizeValue": "200", "SizeUnit": "px", "MatchText": false },
|
|
30
|
+
"isColumnCtrl": false,
|
|
31
|
+
"Embed": "<video src=\"https://example.com/{%return Load.sector.flexFileKey; %}\" style=\"width:100%;height:100%\" controls></video>"
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## 섹터 값 바인딩 — `{%return Load.sector.Field; %}`
|
|
36
|
+
|
|
37
|
+
Embed raw HTML 안에서 섹터 값을 표시하려면 **LoadScript 토큰** `{% ... %}` 을 쓴다 — DC 그룹 안의 Embed 면 그 행의 섹터가 `Load.sector` 로 주입된다 (LoadScript 컨텍스트와 동일, [events.md](../events.md) §2.1 / [runtime/v1/collection/_c.md §6.5](../../../runtime/v1/collection/_c.md)).
|
|
38
|
+
|
|
39
|
+
```jsonc
|
|
40
|
+
// DC 그룹 (CategoryName: "CtgDeptPick") 안의 Embed
|
|
41
|
+
"Embed": "<div>선택 부서: <b>{%return Load.sector.DeptPickName; %}</b></div>"
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
> ⛔ **`{=Field}` 금지 (`[embed-bind]`)** — `{=Field}` 는 Label.labeltext / Button text 류 **display 전용 토큰**으로 Embed raw HTML 에서는 치환되지 않고 문자 그대로 노출된다. `checkEmbedSectorBinding()` 이 차단.
|
|
45
|
+
|
|
46
|
+
### ★ 토큰만으로는 연결이 보장되지 않는다 — 보장 조건 3가지
|
|
47
|
+
|
|
48
|
+
`Load.sector` 는 엔진의 전역 렌더 커서(`Current.sector`)를 읽는 getter 일 뿐이다 (engine publicscript.js). Embed 렌더는 다른 컨트롤과 달리 **sector 인자 없이** `replaceExpressions(embedHTML)` 를 타므로 (engine control.js `createEmbedVideo` — `{=Field}` 가 안 되는 이유이기도 함), `{%Load.sector.ckey%}` 가 실제 그 행의 값으로 평가되려면 다음이 모두 성립해야 한다:
|
|
49
|
+
|
|
50
|
+
| # | 조건 | 깨졌을 때 증상 | 보장 수단 |
|
|
51
|
+
|---|---|---|---|
|
|
52
|
+
| 1 | **조상 DC 그룹** — `UseDataConnection:true + CategoryName` 그룹 아래에 Embed 가 있어야 함. 조상 DC 가 섹터별 렌더 중일 때만 `Current.sector` 가 그 행을 가리킴 (engine layout.js) | DC 밖이면 `Load.sector` = undefined → `{% %}` try/catch 가 삼켜 **조용히 빈 문자열** | `[embed-bind]` 가 정적 차단 |
|
|
53
|
+
| 2 | **ckey 가 그 카테고리 섹터에 실제 존재** — Init mock(`intent.mock`/addSector) 또는 컨트롤 쓰기(Ckeys/CollectionMapper)로 채워져야 함 | 키 없으면 undefined → 빈 문자열 (에러 없음) | [mockup-data.md](../mockup-data.md) ★ 짝 규칙 (정적 검증 없음 — 직접 확인) |
|
|
54
|
+
| 3 | **값 변경 시 재평가** — `{% %}` 는 렌더 시점 1회 평가 | 값 바뀌어도 화면 그대로 | 아래 "값 변경 시 갱신" — fid+sector 타겟 리로드 |
|
|
55
|
+
|
|
56
|
+
### 🔴 값 변경 시 갱신 — fid+sector 타겟 리로드 필수
|
|
57
|
+
|
|
58
|
+
`{% %}` 토큰은 **렌더 시점에 1회 평가**된다 — 바인딩한 키의 컬렉션 값이 바뀌어도 Embed 는 자동 갱신되지 않는다. 값을 바꾸는 이벤트(Tree Selected / Combo change / 입력 change 등)에서 **해당 영역의 부모그룹을, 그 그룹을 그리는 섹터까지 한 번에** 타겟 리로드해야 한다:
|
|
59
|
+
|
|
60
|
+
```js
|
|
61
|
+
f.Content('<Embed 영역 부모그룹 fid>', <그 그룹을 그린 섹터>).reload();
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
- `fid` 만 주고 `sector` 를 빼면 안 된다 — DC 컨텍스트 안의 인스턴스를 섹터(SUID)로 좁혀야 그 행의 `Load.sector` 로 재평가된다 ([runtime/v1/script/f_content.md §3-1](../../../runtime/v1/script/f_content.md)).
|
|
65
|
+
- **DC 그룹 자체 fid 는 reload 금지** (복제 문제 — group.md 함정). Embed 를 **비연결 래퍼 그룹**으로 감싸고 그 래퍼 fid 를 리로드한다.
|
|
66
|
+
|
|
67
|
+
```jsonc
|
|
68
|
+
// 패턴: Tree 선택 → 배너 Embed 갱신
|
|
69
|
+
// [DC 그룹 f_3010 (CtgDeptPick)] > [TreeCard] + [BannerWrap f_3014 (UseDataConnection:false)] > [Embed]
|
|
70
|
+
// Tree.Events.Selected: "DeptTreeSelect_E"
|
|
71
|
+
"DeptTreeSelect_E": [
|
|
72
|
+
{ "Action": "Script", "Script": "f.Content('f_3014', _c.CtgDeptPick[0]).reload()" }
|
|
73
|
+
]
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## ★ 외부 라이브러리 연동 패턴 (Chart / 지도 / QR 등)
|
|
77
|
+
|
|
78
|
+
> **핵심:** `<script>` 태그는 `Embed` 안에 **직접 넣을 수 없다.** 외부 라이브러리 URL 은 **`Scenario.StyleURLs` 배열에 등록하는 것이 표준** — 시나리오 진입 시 자동 로드되므로 별도 로딩 호출이 필요 없다.
|
|
79
|
+
|
|
80
|
+
### 표준 흐름
|
|
81
|
+
|
|
82
|
+
1. **유니크한 id 부여한 `<div>` / `<canvas>`** 를 Embed 안에 둔다.
|
|
83
|
+
2. 외부 라이브러리 URL 은 **`Scenario.StyleURLs`** 배열에 추가한다 (권장 — 진입 시 자동 로드).
|
|
84
|
+
- `f.Script.load(url, callbackEventName)` 도 화이트리스트상 허용되지만, **정적으로 알 수 있는 라이브러리는 `StyleURLs` 에 두는 것을 우선**한다. `f.Script.load` 는 런타임에 동적으로만 결정되는 URL 등 부득이한 경우로 한정.
|
|
85
|
+
3. Step **`Loaded`** (DOM 준비 완료) 이벤트에서 `document.getElementById(uniqueId)` 로 DOM 을 잡아 **실제로 렌더**한다. (`StyleURLs` 로 미리 로드돼 있으므로 라이브러리 전역 객체를 바로 사용.)
|
|
86
|
+
|
|
87
|
+
> 🔴 **CRITICAL — 로드 ≠ 렌더 (`[embed-render]`)**: 라이브러리를 `StyleURLs`(또는 `f.Script.load`)로 불러오는 것만으로는 **아무것도 안 그려진다.** `<canvas>` / 빈 `<div id=…>` 를 둔 Embed 는 **반드시** host Step 의 `Loaded` 핸들러에서 `document.getElementById(...)` 로 DOM 을 잡아 `new Chart(...)` / `new naver.maps.Map(...)` 등 **렌더 코드를 직접 실행**해야 한다. 로딩 호출만 넣고 그리기를 빼먹으면 빈 영역만 남는다 — `checkEmbedRender()` 가 이 누락을 차단(`strict_embed_render:false` 로 비활성).
|
|
88
|
+
|
|
89
|
+
> ⚠️ **`Loaded` vs `Init`** — Chart/Canvas 처럼 DOM 이 그려진 뒤 즉시 작업하면 `Loaded`. 지도처럼 라이브러리 콜백으로 진입하는 패턴은 `Init` 에서 처리.
|
|
90
|
+
>
|
|
91
|
+
> ⛔ **Tab 컨트롤 내부 LinkedStep 에는 Embed 자체를 두지 말 것** (`[tab-embed]`) — 탭 내부 Step 은 `Loaded`/`Init` 이 미실행이라 위 초기화 흐름이 돌지 않는다. [control/tab.md](tab.md) 참조.
|
|
92
|
+
>
|
|
93
|
+
> `Loaded` 이벤트가 있는 Step 으로 **뒤로 돌아가는 BottomButton 은 `Prev_ReStart`** 사용 (재진입 시 차트/지도/캔버스 재초기화).
|
|
94
|
+
|
|
95
|
+
### 예시 A — Chart.js (Step Loaded)
|
|
96
|
+
|
|
97
|
+
```jsonc
|
|
98
|
+
// Embed control
|
|
99
|
+
{
|
|
100
|
+
"ControlType": "Embed",
|
|
101
|
+
"Id": "f_chart",
|
|
102
|
+
"ControlDefaultName": "ChartEmbed", "ControlName2": "ChartEmbed",
|
|
103
|
+
"Caption": "",
|
|
104
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
105
|
+
"Height": { "SizeValue": "300", "SizeUnit": "px", "MatchText": false },
|
|
106
|
+
"isColumnCtrl": false,
|
|
107
|
+
"Embed": "<canvas id=\"myChart\"></canvas>"
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
**권장 — 라이브러리는 `Scenario.StyleURLs` 에 등록** (진입 시 자동 로드, 별도 로딩 호출 불요):
|
|
112
|
+
|
|
113
|
+
```jsonc
|
|
114
|
+
{
|
|
115
|
+
"Scenario": {
|
|
116
|
+
"StyleURLs": [
|
|
117
|
+
"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.min.js"
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
```javascript
|
|
124
|
+
// Step Loaded 이벤트 — StyleURLs 로 이미 로드돼 있으므로 Chart 전역을 바로 사용.
|
|
125
|
+
var ctx = document.getElementById('myChart').getContext('2d');
|
|
126
|
+
new Chart(ctx, {
|
|
127
|
+
type: 'bar',
|
|
128
|
+
data: { labels: ['1월','2월','3월'], datasets: [{ label: '매출', data: [120, 190, 300] }] },
|
|
129
|
+
options: { responsive: true }
|
|
130
|
+
});
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
> `f.Script.load('https://.../Chart.bundle.min.js', null, null)` 도 허용되지만, 위처럼 정적 URL 은 `StyleURLs` 등록을 우선한다.
|
|
134
|
+
|
|
135
|
+
### 예시 B — 네이버지도 (StyleURLs + Step Loaded 렌더)
|
|
136
|
+
|
|
137
|
+
```jsonc
|
|
138
|
+
// 라이브러리: Scenario.StyleURLs 에 등록 (진입 시 자동 로드)
|
|
139
|
+
{ "Scenario": { "StyleURLs": ["https://openapi.map.naver.com/openapi/v3/maps.js?ncpClientId=YOUR_KEY"] } }
|
|
140
|
+
|
|
141
|
+
// Embed control
|
|
142
|
+
{
|
|
143
|
+
"ControlType": "Embed",
|
|
144
|
+
"Id": "f_map",
|
|
145
|
+
"Caption": "",
|
|
146
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
147
|
+
"Height": { "SizeValue": "300", "SizeUnit": "px", "MatchText": false },
|
|
148
|
+
"Embed": "<div id=\"naverMap\" style=\"width:100%;height:100%;\"></div>"
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
```javascript
|
|
153
|
+
// Step Loaded 핸들러 — getElementById 로 DOM 잡고 지도를 실제로 렌더 (로드는 StyleURLs 가 끝냄)
|
|
154
|
+
var el = document.getElementById('naverMap');
|
|
155
|
+
var lat = _c.activeSector.Latitude;
|
|
156
|
+
var lng = _c.activeSector.Longitude;
|
|
157
|
+
var map = new naver.maps.Map(el, { center: new naver.maps.LatLng(lat, lng), zoom: 16 });
|
|
158
|
+
new naver.maps.Marker({ position: new naver.maps.LatLng(lat, lng), map });
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### 예시 C — QR 코드 (StyleURLs + Step Loaded 렌더)
|
|
162
|
+
|
|
163
|
+
```jsonc
|
|
164
|
+
// 라이브러리: Scenario.StyleURLs 에 등록
|
|
165
|
+
{ "Scenario": { "StyleURLs": ["https://cdn.jsdelivr.net/npm/qrcode@1.4.4/build/qrcode.min.js"] } }
|
|
166
|
+
|
|
167
|
+
// Embed control
|
|
168
|
+
{
|
|
169
|
+
"ControlType": "Embed",
|
|
170
|
+
"Id": "f_qr",
|
|
171
|
+
"ControlDefaultName": "QrEmbed", "ControlName2": "QrEmbed",
|
|
172
|
+
"Caption": "",
|
|
173
|
+
"Width": { "SizeValue": "200", "SizeUnit": "px", "MatchText": false },
|
|
174
|
+
"Height": { "SizeValue": "200", "SizeUnit": "px", "MatchText": false },
|
|
175
|
+
"Embed": "<div id=\"qrcode\"></div>"
|
|
176
|
+
}
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
```javascript
|
|
180
|
+
// Step Loaded 핸들러 — getElementById 로 DOM 잡고 QR 을 실제로 렌더
|
|
181
|
+
QRCode.toDataURL(data, function(err, url) {
|
|
182
|
+
document.getElementById('qrcode').innerHTML = '<img src="' + url + '">';
|
|
183
|
+
});
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## 숨김 style-only Embed
|
|
187
|
+
|
|
188
|
+
CSS 주입 용도 — Width/Height 0px 로 보이지 않게.
|
|
189
|
+
|
|
190
|
+
```jsonc
|
|
191
|
+
{
|
|
192
|
+
"ControlType": "Embed",
|
|
193
|
+
"Caption": "",
|
|
194
|
+
"Width": { "SizeValue": "0", "SizeUnit": "px", "MatchText": false },
|
|
195
|
+
"Height": { "SizeValue": "0", "SizeUnit": "px", "MatchText": false },
|
|
196
|
+
"Embed": "<style>.custom-class { color: red; }</style>"
|
|
197
|
+
}
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
## 함정
|
|
201
|
+
|
|
202
|
+
- **`{=Field}` 디스플레이 토큰 금지 (`[embed-bind]`)** — Embed raw HTML 안에서는 `{=Field}` 가 치환되지 않고 문자 그대로 노출된다. 섹터 값은 `{%return Load.sector.Field; %}` (LoadScript 토큰) 로 바인딩 — DC 그룹 안의 Embed 면 그 행의 섹터가 `Load.sector` 로 주입됨.
|
|
203
|
+
- **`<script>` 직접 삽입 금지** — 외부 라이브러리는 **`Scenario.StyleURLs` 등록을 우선**(정적 URL). `f.Script.load()` 는 동적 URL 등 부득이한 경우로 한정.
|
|
204
|
+
- **`Caption: ""` 반드시 빈 문자열** — 스키마 const 강제. ControlDefaultName 같은 값을 두면 화면에 그대로 출력됨.
|
|
205
|
+
- DOM 조작은 **부모 Step 의 Loaded/Init 이벤트** 에서. Embed 본체에는 별도 이벤트 없음.
|
|
206
|
+
- 🔴 **로드만 하고 렌더를 빼먹지 말 것 (`[embed-render]`)** — `StyleURLs`/`f.Script.load` 로 라이브러리를 불러오는 것만으로는 canvas/빈 div 에 아무것도 안 그려진다. `<canvas>`/빈 `<div id=…>` Embed 는 반드시 host Step 의 `Loaded` 핸들러에서 `document.getElementById(...)` 로 잡아 `new Chart()`/`new naver.maps.Map()` 등 **렌더 코드를 직접 실행**해야 한다. `checkEmbedRender()` 가 누락을 차단.
|
|
207
|
+
- **`Tab` 컨트롤 내부 LinkedStep 에는 Embed 금지 (`[tab-embed]`)** — 탭 내부 Step 은 Step 이벤트(`Init`/`Loaded`)가 미실행이라 DOM 초기화 시점을 잡을 수 없다 (예: 통계 탭의 차트). 빈 영역만 그려지거나 차트가 안 뜬다. `Items[].LinkedStepId` 로 띄우는 Step 의 Contents 에 Embed 가 있으면 `checkTabLinkedStepEmbed()` 가 거부. Embed 가 필요한 화면은 **탭이 아닌 별도 Step** 으로 분리. ([control/tab.md](tab.md) "탭 내부 LinkedStep 에는 Embed 컨트롤 금지" 참조.)
|
|
208
|
+
- 외부 라이브러리 callback 은 Events 섹션에 **동일한 이름** 으로 등록 필수 (불일치 시 콜백 미호출).
|
|
209
|
+
- `Loaded` 이벤트로 진입하는 Step 으로 뒤로 가는 BottomButton 은 `Prev_ReStart` 사용 — 일반 `Prev` 면 차트/지도가 재초기화 안 됨.
|
|
210
|
+
- 지도: 한국 시나리오 → 네이버지도 JavaScript API, 해외 → Google Maps. iframe 방식은 간단 표시용으로만 (해외).
|
|
211
|
+
- div/canvas 의 id 는 시나리오 내 **유니크** 해야 함 (DOM querySelector 충돌 방지).
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://flextudio.local/meta-contract/v1/control/embed.schema.json",
|
|
4
|
+
"title": "Embed",
|
|
5
|
+
"description": "HTML 태그를 직접 화면에 삽입하는 컨트롤. Embed 속성에 raw HTML 문자열을 두면 그대로 렌더된다. 외부 라이브러리(Chart/지도/QR 등) 연동 시 유니크한 id 의 <div>/<canvas> 를 두고 외부 라이브러리 URL 은 Scenario.StyleURLs 배열에 등록(권장 — 진입 시 자동 로드; 동적 URL 등 부득이한 경우만 f.Script.load() 사용). ★ 로드 ≠ 렌더([embed-render]): 라이브러리 로드만으로는 안 그려진다 — canvas/빈 컨테이너 Embed 는 반드시 host Step 의 Loaded 핸들러에서 document.getElementById() 로 DOM 을 잡아 new Chart()/new naver.maps.Map() 등 렌더 코드를 직접 실행해야 한다. ★ Tab 컨트롤 내부 LinkedStep 에는 Embed 금지([tab-embed]) — 탭 내부 Step 은 Step 이벤트가 미실행이라 초기화 시점을 못 잡음. ★ Caption 은 반드시 빈 문자열 (Embed 본체에 표시되므로 ControlDefaultName 같은 내부명을 두면 그대로 출력됨).",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": ["Id", "ControlType", "Embed"],
|
|
9
|
+
"allOf": [
|
|
10
|
+
{ "$ref": "_base.schema.json#/$defs/controlBase" },
|
|
11
|
+
{
|
|
12
|
+
"properties": {
|
|
13
|
+
"ControlType": { "const": "Embed" },
|
|
14
|
+
"Caption": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "",
|
|
17
|
+
"description": "★ 반드시 빈 문자열 — Embed 는 화면에 직접 그려지므로 Caption 값이 그대로 노출된다."
|
|
18
|
+
},
|
|
19
|
+
"Embed": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "삽입할 raw HTML 문자열. <video>/<iframe>/<canvas>/<div>/<style> 등. ★ <script></script> 직접 삽입 불가 — 외부 라이브러리 URL 은 Scenario.StyleURLs 배열에 등록(권장). ★ 섹터 값 바인딩은 {%return Load.sector.Field; %} (LoadScript 토큰) — {=Field} 는 Embed 안에서 치환되지 않고 그대로 노출됨([embed-bind] 차단). Load.sector 는 조상 DC 그룹(UseDataConnection:true) 아래에서만 그 행의 섹터를 가리킴 — DC 밖이면 조용히 빈 문자열([embed-bind] 차단). 외부 라이브러리 연동 시 div/canvas 에 유니크한 id 부여 → Step Loaded 에서 document.getElementById() 로 DOM 잡고 라이브러리 호출."
|
|
22
|
+
},
|
|
23
|
+
"LoadScript": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "(선택) 컴포넌트 로드 직전 스크립트. DOM 접근은 Step Loaded 에서 처리하는 게 일반적이라 통상 미사용."
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
# ImageBox
|
|
2
|
+
|
|
3
|
+
이미지 표시/업로드 컨트롤. `ImageBoxType` 으로 두 모드 분기.
|
|
4
|
+
|
|
5
|
+
## 스키마
|
|
6
|
+
|
|
7
|
+
`control/image-box.schema.json` — `controlBase` + 분기 키 (`ControlType="ImageBox"`, `ImageBoxType`, `ViewGroup`, `EditGroup`).
|
|
8
|
+
|
|
9
|
+
## ImageBoxType (제한)
|
|
10
|
+
|
|
11
|
+
| 값 | 동작 | 필수 프로퍼티 |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| `"View"` | 읽기 전용 표시 | `ViewGroup` |
|
|
14
|
+
| `"Edit"` | 업로드/촬영 + 표시 | `ViewGroup` (placeholder) + `EditGroup` (FlexFile 저장) |
|
|
15
|
+
|
|
16
|
+
> **원리**: Edit 업로드 → 파일키가 `EditGroup.FlexKey.ckey` 컬렉션 필드에 저장. View 에서 동일 `ImageSrcType: "FlexFile"` + 동일 `FlexKey`/`ckey` 값으로 표시.
|
|
17
|
+
|
|
18
|
+
## ImageSrcType (ViewGroup.ImageSrcType)
|
|
19
|
+
|
|
20
|
+
| 값 | 키 | 의미 |
|
|
21
|
+
|---|---|---|
|
|
22
|
+
| `"FlexFile"` | `FlexKey` + `ckey` | Edit 업로드 이미지 표시 (둘은 같은 값) |
|
|
23
|
+
| `"Url"` | `ImageUrl` | 외부 URL. `{=ImageField}` 바인딩 가능 |
|
|
24
|
+
| `"Base64"` | `ImageUrl` | Base64 인코딩 인라인 |
|
|
25
|
+
| `"Upload"` | — | **Edit 모드 전용** — `ViewGroup` 의 업로드 placeholder. `EditGroup` 와 짝 |
|
|
26
|
+
|
|
27
|
+
## 시나리오 생성 시 (AI 생성 스켈레톤)
|
|
28
|
+
|
|
29
|
+
**AI 가 시나리오를 생성할 때는 데이터 바인딩 메타(`ViewGroup` / `EditGroup`)를 생략해도 된다.** FlexFile 키 / 카테고리 필드명 / SharedTarget 등은 스튜디오 또는 사용자가 사후 설정한다.
|
|
30
|
+
|
|
31
|
+
```jsonc
|
|
32
|
+
// AI 생성 — View 스켈레톤 (데이터 미설정)
|
|
33
|
+
{
|
|
34
|
+
"ControlType": "ImageBox",
|
|
35
|
+
"ImageBoxType": "View",
|
|
36
|
+
"ControlDefaultName": "ImgView1",
|
|
37
|
+
"ControlName2": "ImgView1",
|
|
38
|
+
"Caption": "ImgView1",
|
|
39
|
+
"Id": "f_41",
|
|
40
|
+
"Width": { "SizeValue": "80", "SizeUnit": "px" },
|
|
41
|
+
"Height": { "SizeValue": "80", "SizeUnit": "px" },
|
|
42
|
+
"isColumnCtrl": false
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```jsonc
|
|
47
|
+
// AI 생성 — Edit 스켈레톤 (데이터 미설정)
|
|
48
|
+
{
|
|
49
|
+
"ControlType": "ImageBox",
|
|
50
|
+
"ImageBoxType": "Edit",
|
|
51
|
+
"ControlDefaultName": "ImgUpload1",
|
|
52
|
+
"ControlName2": "ImgUpload1",
|
|
53
|
+
"Caption": "ImgUpload1",
|
|
54
|
+
"Id": "f_42",
|
|
55
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
56
|
+
"Height": { "SizeValue": "200", "SizeUnit": "px" },
|
|
57
|
+
"isColumnCtrl": false
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
> **원칙**: AI 는 `ImageBoxType` 만 결정하고 데이터 메타는 두지 않는다. 다만 `ViewGroup` / `EditGroup` 을 **굳이 작성한다면** 아래 정식 예시처럼 **유효한 형태로** (ImageSrcType 별 필수 키를 채워서) 작성해야 한다 — 빈 객체 / 누락 키는 schema 차단.
|
|
62
|
+
|
|
63
|
+
## 예시 — View 모드 (FlexFile)
|
|
64
|
+
|
|
65
|
+
```jsonc
|
|
66
|
+
{
|
|
67
|
+
"ControlType": "ImageBox",
|
|
68
|
+
"ImageBoxType": "View",
|
|
69
|
+
"ViewGroup": {
|
|
70
|
+
"ImageSrcType": "FlexFile",
|
|
71
|
+
"SharedTarget": "tenant",
|
|
72
|
+
"FlexKey": "PhotoUrl",
|
|
73
|
+
"ckey": "PhotoUrl"
|
|
74
|
+
},
|
|
75
|
+
"Width": { "SizeValue": "80", "SizeUnit": "px" },
|
|
76
|
+
"Height": { "SizeValue": "80", "SizeUnit": "px" },
|
|
77
|
+
"ControlDefaultName": "ImgView",
|
|
78
|
+
"ControlName2": "ImgView",
|
|
79
|
+
"Caption": "ImgView",
|
|
80
|
+
"Id": "f_41",
|
|
81
|
+
"isColumnCtrl": false
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## 예시 — View 모드 (Url)
|
|
86
|
+
|
|
87
|
+
```jsonc
|
|
88
|
+
{
|
|
89
|
+
"ControlType": "ImageBox",
|
|
90
|
+
"ImageBoxType": "View",
|
|
91
|
+
"ViewGroup": {
|
|
92
|
+
"ImageSrcType": "Url",
|
|
93
|
+
"ImageUrl": "{=ImageField}"
|
|
94
|
+
},
|
|
95
|
+
"ControlDefaultName": "ImgUrl",
|
|
96
|
+
"ControlName2": "ImgUrl",
|
|
97
|
+
"Caption": "ImgUrl",
|
|
98
|
+
"Id": "f_42",
|
|
99
|
+
"isColumnCtrl": false
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## 예시 — Edit 모드
|
|
104
|
+
|
|
105
|
+
```jsonc
|
|
106
|
+
{
|
|
107
|
+
"ControlType": "ImageBox",
|
|
108
|
+
"ImageBoxType": "Edit",
|
|
109
|
+
"ViewGroup": {
|
|
110
|
+
"ImageSrcType": "Upload"
|
|
111
|
+
},
|
|
112
|
+
"EditGroup": {
|
|
113
|
+
"ImageSrcType": "FlexFile",
|
|
114
|
+
"SharedTarget": "tenant",
|
|
115
|
+
"FlexKey": { "ckey": "PhotoUrl", "Name": "" },
|
|
116
|
+
"Module": "FlexFile"
|
|
117
|
+
},
|
|
118
|
+
"UseCondition": "false",
|
|
119
|
+
"UseMultiData": "false",
|
|
120
|
+
"UseEvents": "false",
|
|
121
|
+
"Events": {},
|
|
122
|
+
"Width": { "SizeValue": 100, "SizeUnit": "%" },
|
|
123
|
+
"Height": { "SizeValue": "200", "SizeUnit": "px" },
|
|
124
|
+
"ControlDefaultName": "ImgUpload",
|
|
125
|
+
"ControlName2": "ImgUpload",
|
|
126
|
+
"Caption": "ImgUpload",
|
|
127
|
+
"Id": "f_43",
|
|
128
|
+
"isColumnCtrl": false
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
> **Edit 모드 필수**: `ViewGroup`(`ImageSrcType: "Upload"`) + `EditGroup`(FlexFile 저장) 둘 다. `UseCondition`/`UseMultiData`/`UseEvents`/`Events` 함께 작성하는 것이 실 샘플 패턴 (값은 문자열 `"false"` 도 통과).
|
|
133
|
+
|
|
134
|
+
## 이벤트 (제한)
|
|
135
|
+
|
|
136
|
+
`Events` 는 `_base.schema.json#/$defs/imageBoxEvents` 적용. `ImageEventOrder` 에 `Click` 만. EventOrder ↔ 핸들러 일치 강제.
|
|
137
|
+
|
|
138
|
+
```jsonc
|
|
139
|
+
{
|
|
140
|
+
"UseEvents": true,
|
|
141
|
+
"Events": {
|
|
142
|
+
"ImageEventOrder": ["Click"],
|
|
143
|
+
"Click": "ON_IMAGE_CLICK_E"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## FlexKey 형태
|
|
149
|
+
|
|
150
|
+
| 모드 | 형태 | 비고 |
|
|
151
|
+
|---|---|---|
|
|
152
|
+
| `View` | string (필드명) | `ckey` 와 동일 값으로 동시에 작성 |
|
|
153
|
+
| `Edit.EditGroup` | `{ "ckey": "...", "Name": "" }` | `ckey` 가 저장 대상 필드명 |
|
|
154
|
+
|
|
155
|
+
## SharedTarget
|
|
156
|
+
|
|
157
|
+
`"tenant"` (테넌트 공유, 일반) / `"user"` (사용자 전용) / `"global"` (전역 공유). 실 샘플 대부분 `"tenant"`.
|
|
158
|
+
|
|
159
|
+
## `UseDefaultValue` — 기본(폴백) 이미지
|
|
160
|
+
|
|
161
|
+
`UseDefaultValue` 는 **단일 boolean 키**(`engine const K.USE_DEFAULTVALUE='UseDefaultValue'`) 지만 `ImageBoxType` 별로 의미가 다르다. property-data.js 가 두 개의 UI 토글(`createUseDefault` / `createUseDefaultView`)로 노출하지만 둘 다 같은 키에 기록.
|
|
162
|
+
|
|
163
|
+
| ImageBoxType | 토글 UI 위치 | UseDefaultValue=true 효과 | 추가 키 |
|
|
164
|
+
|---|---|---|---|
|
|
165
|
+
| `Edit` | `createUseDefault` (id `UseDefault`) — Edit 그룹 안 | EditGroup 업로드 실패/미설정 시 `ViewGroup` 의 이미지를 placeholder 로 표시 ([imagebox.js:42-45](public/engine/control/imagebox.js#L42)) | `ViewGroup` (기존) |
|
|
166
|
+
| `View` | `createUseDefaultView` (id `UseDefaultView`) — View 그룹 안 | `ViewGroup` 의 FlexFile/Base64 로드가 비어있을 때 `DefaultViewGroup` 의 이미지를 fallback 으로 표시 | `DefaultViewGroup` 추가 |
|
|
167
|
+
|
|
168
|
+
> **View 모드의 토글 표시 조건** (property-data.js line 11780): `ViewGroup.ImageSrcType ∈ { "FlexFile", "Base64" }` 일 때만 스튜디오 프로퍼티 패널에 노출. `Url` 일 때는 표시 안 됨 (URL 은 외부 리소스라 fallback 의미 약함).
|
|
169
|
+
|
|
170
|
+
### `DefaultViewGroup` 형태
|
|
171
|
+
|
|
172
|
+
`ViewGroup` 과 **완전히 동일한 shape** — `_base.schema.json#/$defs/imageBoxViewGroup` 그대로 재사용. 즉 `ImageSrcType` 분기에 따라 `FlexKey`/`ckey`/`ImageUrl` 등이 같은 규약으로 채워진다.
|
|
173
|
+
|
|
174
|
+
```jsonc
|
|
175
|
+
// View 모드 + UseDefaultValue=true (운영 메타 예 — AI 생성에는 두지 말 것)
|
|
176
|
+
{
|
|
177
|
+
"ControlType": "ImageBox",
|
|
178
|
+
"ImageBoxType": "View",
|
|
179
|
+
"ViewGroup": {
|
|
180
|
+
"ImageSrcType": "FlexFile",
|
|
181
|
+
"SharedTarget": "tenant",
|
|
182
|
+
"FlexKey": "PhotoUrl",
|
|
183
|
+
"ckey": "PhotoUrl"
|
|
184
|
+
},
|
|
185
|
+
"UseDefaultValue": true,
|
|
186
|
+
"DefaultViewGroup": {
|
|
187
|
+
"ImageSrcType": "Url",
|
|
188
|
+
"ImageUrl": "/imagesCommon/avatar-placeholder.png"
|
|
189
|
+
},
|
|
190
|
+
"Id": "f_60"
|
|
191
|
+
}
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
→ `_collections` 에서 `PhotoUrl` 이 비어있거나 FlexFile 다운로드가 실패하면 `DefaultViewGroup` 의 placeholder URL 이 대신 표시.
|
|
195
|
+
|
|
196
|
+
### Edit 모드 — `UseDefaultValue=true` 만 두는 케이스
|
|
197
|
+
|
|
198
|
+
```jsonc
|
|
199
|
+
{
|
|
200
|
+
"ControlType": "ImageBox",
|
|
201
|
+
"ImageBoxType": "Edit",
|
|
202
|
+
"ViewGroup": {
|
|
203
|
+
"ImageSrcType": "Url",
|
|
204
|
+
"ImageUrl": "/imagesCommon/upload-placeholder.png"
|
|
205
|
+
},
|
|
206
|
+
"EditGroup": {
|
|
207
|
+
"ImageSrcType": "FlexFile",
|
|
208
|
+
"FlexKey": { "ckey": "PhotoUrl", "Name": "" },
|
|
209
|
+
"Module": "FlexFile"
|
|
210
|
+
},
|
|
211
|
+
"UseDefaultValue": true,
|
|
212
|
+
"Id": "f_61"
|
|
213
|
+
}
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
→ 업로드 전에는 `ViewGroup` 의 placeholder URL 이 보이고, 업로드 후에는 그 자리에 업로드한 이미지가 표시. Edit 모드에서는 `DefaultViewGroup` 을 두지 않는다 — `ViewGroup` 자체가 placeholder 역할.
|
|
217
|
+
|
|
218
|
+
### ★ AI 생성 정책
|
|
219
|
+
|
|
220
|
+
- `UseDefaultValue` 는 **boolean strict** (CHECKBOX 진실원본). 문자열 `"true"`/`"false"` 금지.
|
|
221
|
+
- `DefaultViewGroup` 은 **AI 생성 시 미포함** — 운영에서 placeholder 이미지를 정한 다음 사용자가 수동 설정. AI 가 굳이 placeholder 경로를 추측하지 않는다. ([control.md §AI 샘플 생성 금지 키](../control.md#ai-critical) 단일 진실원본 표 등재 — `AI_GEN_STRICT=1` 시 validate.mjs `[ai-gen]` 태그 차단.)
|
|
222
|
+
- AI 생성 스켈레톤 단계에서는 둘 다 생략 권장. ImageBoxType 만 결정.
|
|
223
|
+
|
|
224
|
+
## Edit ↔ View 연동
|
|
225
|
+
|
|
226
|
+
- Edit 업로드 시 → `EditGroup.FlexKey.ckey` 컬렉션 필드에 파일키 저장.
|
|
227
|
+
- View 에서 표시할 때 → `ImageSrcType: "FlexFile"` + 같은 `FlexKey`/`ckey` 값.
|
|
228
|
+
- View 에서 `ImageSrcType: "Url"` 로 두면 FlexFile 파일키는 표시 못 함 — 외부 URL 만.
|
|
229
|
+
|
|
230
|
+
## 함정
|
|
231
|
+
|
|
232
|
+
- `ControlName2` 누락 = 런타임 에러. `ControlDefaultName` 과 같은 값.
|
|
233
|
+
- `isColumnCtrl: false` 항상 명시 (Sheet 컬럼 모드는 OtherControl).
|
|
234
|
+
- AI 생성 단계에서는 `ViewGroup` / `EditGroup` 을 생략해도 schema 통과 (스켈레톤). 운영에 투입하려면 사후 설정 필수.
|
|
235
|
+
- Edit 모드 운영 시 `ViewGroup` 누락 → 업로드 후 표시 영역 비어 있음. `ImageSrcType: "Upload"` 로 placeholder 명시.
|
|
236
|
+
- Edit 모드 `EditGroup.FlexKey` 는 **객체** (`{ ckey, Name }`), View 모드 `FlexKey` 는 **string**. 혼동 주의.
|
|
237
|
+
- `Ckeys` 미사용 — 데이터 바인딩은 `ViewGroup.ckey` / `EditGroup.FlexKey.ckey` 로 처리 (별도 `Ckeys` 배열은 두지 않는다).
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://flextudio.local/meta-contract/v1/control/image-box.schema.json",
|
|
4
|
+
"title": "ImageBox",
|
|
5
|
+
"description": "이미지 표시/업로드 컨트롤. ImageBoxType=View → ViewGroup 으로 이미지 표시. ImageBoxType=Edit → ViewGroup(=업로드 placeholder) + EditGroup(FlexFile 저장) 둘 다 권장. Edit 업로드 → 파일키가 EditGroup.FlexKey.ckey 컬렉션 필드에 저장 → View 에서 ImageSrcType='FlexFile' + 동일 FlexKey/ckey 로 표시. **AI 시나리오 생성 시**: ViewGroup/EditGroup 등 데이터 바인딩 메타는 생략 가능 (스튜디오/사용자가 사후 설정). 단 ViewGroup/EditGroup 을 작성한다면 그 안의 ImageSrcType 별 필수 키는 강제.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": ["Id", "ControlType"],
|
|
9
|
+
"allOf": [
|
|
10
|
+
{ "$ref": "_base.schema.json#/$defs/controlBase" },
|
|
11
|
+
{
|
|
12
|
+
"properties": {
|
|
13
|
+
"ControlType": { "const": "ImageBox" },
|
|
14
|
+
"ImageBoxType": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"enum": ["View", "Edit"],
|
|
17
|
+
"description": "View=읽기전용 이미지 표시. Edit=업로드/촬영 + 표시."
|
|
18
|
+
},
|
|
19
|
+
"ViewGroup": { "$ref": "_base.schema.json#/$defs/imageBoxViewGroup" },
|
|
20
|
+
"EditGroup": { "$ref": "_base.schema.json#/$defs/imageBoxEditGroup" },
|
|
21
|
+
"UseDefaultValue": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"default": false,
|
|
24
|
+
"description": "기본(폴백) 이미지 사용 여부. ★ 단일 키지만 ImageBoxType 별로 의미가 다름: (1) ImageBoxType='Edit' → true 면 EditGroup 업로드 전/실패 시 ViewGroup 의 이미지를 placeholder 로 표시 (property-data createUseDefault, 토글 UI 'UseDefault'). (2) ImageBoxType='View' → true 면 DefaultViewGroup 활성 — ViewGroup 의 FlexFile/Base64 로드 실패 시 fallback (property-data createUseDefaultView, 토글 UI 'UseDefaultView', 표시 조건: ViewGroup.ImageSrcType ∈ {'FlexFile','Base64'}). engine const K.USE_DEFAULTVALUE='UseDefaultValue' — 프로퍼티 EDITOR_CTRL.CHECKBOX, boolean strict."
|
|
25
|
+
},
|
|
26
|
+
"DefaultViewGroup": {
|
|
27
|
+
"$ref": "_base.schema.json#/$defs/imageBoxViewGroup",
|
|
28
|
+
"description": "기본 이미지 정의 — ImageBoxType='View' + UseDefaultValue=true 조합에서 fallback 으로 표시될 이미지. shape 은 ViewGroup 과 동일 ($defs/imageBoxViewGroup). UseDefaultValue=true 면 사용자 수동 설정으로 채워짐. ★ AI 생성 시 미포함 — 운영 사후 설정 전용."
|
|
29
|
+
},
|
|
30
|
+
"UseCondition": { "type": "boolean", "description": "조건부 동작 사용. Edit 모드 샘플은 문자열 'false' 도 허용." },
|
|
31
|
+
"UseMultiData": { "type": "boolean", "description": "다중 이미지 사용. Edit 모드 샘플은 문자열 'false' 도 허용." },
|
|
32
|
+
"UseEvents": { "type": "boolean", "description": "이벤트 사용. Edit 모드 샘플은 문자열 'false' 도 허용." },
|
|
33
|
+
"Events": { "$ref": "_base.schema.json#/$defs/imageBoxEvents" }
|
|
34
|
+
},
|
|
35
|
+
"required": ["ImageBoxType"]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"$comment": "ImageBoxType='View' + UseDefaultValue=true → DefaultViewGroup 권장. 운영 메타에 종종 누락 — schema 강제 안 함 (가이드 차원).",
|
|
39
|
+
"if": {
|
|
40
|
+
"properties": {
|
|
41
|
+
"ImageBoxType": { "const": "View" },
|
|
42
|
+
"UseDefaultValue": { "const": true }
|
|
43
|
+
},
|
|
44
|
+
"required": ["ImageBoxType", "UseDefaultValue"]
|
|
45
|
+
},
|
|
46
|
+
"then": {}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|