Bläddra i källkod

Extra test data from Kendo version

Richard Knight 5 år sedan
förälder
incheckning
2ac14453aa
2 ändrade filer med 78 tillägg och 0 borttagningar
  1. 39 0
      src/app/_mock/testfields.v13.ts
  2. 39 0
      src/app/_mock/testfields.v14.ts

+ 39 - 0
src/app/_mock/testfields.v13.ts

@@ -0,0 +1,39 @@
+// ---------------------------------------------------------------------------------------------------------------------
+// TESTS: Repeating Groups Of Fields ( 1 -> N arrays of containers for multiple fields )
+// ---------------------------------------------------------------------------------------------------------------------
+
+const model = {
+	repeating: [
+		{
+			a: 1,
+			b: 2,
+		},
+		{
+			a: 3,
+			b: 4,
+		}
+	],
+	standard: 'YABBA DABBA DOOOOOO'
+};
+
+const meta = {
+	repeating: {
+		label: 'Repeating Group',
+		seed: { class: 'short-field' },
+		minRepeat: 1,
+		maxRepeat: 5,
+		initialRepeat: 3,
+		showAddControl: true,
+		showDeleteControl: true,
+		display: 'ALL', // ALL or SINGLE,
+		primaryField: 'a',
+		meta: [
+			{
+				a: { label: 'Field A' },
+				b: { label: 'Field B', type: 'select', options: [1, 2, 3, 4, 5] }
+			}
+		]
+	}
+};
+
+export { model, meta };

+ 39 - 0
src/app/_mock/testfields.v14.ts

@@ -0,0 +1,39 @@
+// ---------------------------------------------------------------------------------------------------------------------
+// TESTS: Repeating Groups Of Fields in Single Mode ( 1 -> N arrays of containers for multiple fields )
+// ---------------------------------------------------------------------------------------------------------------------
+
+const model = {
+	repeating: [
+		{
+			a: 1,
+			b: 2,
+		},
+		{
+			a: 3,
+			b: 4,
+		}
+	],
+	standard: 'YABBA DABBA DOOOOOO'
+};
+
+const meta = {
+	repeating: {
+		label: 'Repeating Group',
+		seed: { class: 'short-field' },
+		minRepeat: 1,
+		maxRepeat: 5,
+		initialRepeat: 3,
+		showAddControl: true,
+		showDeleteControl: true,
+		display: 'ALL', // ALL or SINGLE,
+		primaryField: 'a',
+		meta: [
+			{
+				a: { label: 'Field A' },
+				b: { label: 'Field B', type: 'select', options: [1, 2, 3, 4, 5] }
+			}
+		]
+	}
+};
+
+export { model, meta };